mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2024-11-23 05:49:59 +00:00
Use type-safe project dependencies
This commit is contained in:
parent
5a4edfab8b
commit
711482cd44
@ -80,17 +80,3 @@ object Dependencies {
|
||||
const val nexusPublishPluginVersion = "1.0.0"
|
||||
const val dokkaVersion = "1.4.30"
|
||||
}
|
||||
|
||||
/**
|
||||
* Add given project as api
|
||||
*/
|
||||
fun DependencyHandler.apiProject(path: String) {
|
||||
add("api", project(path))
|
||||
}
|
||||
|
||||
/**
|
||||
* Add given project as implementation
|
||||
*/
|
||||
fun DependencyHandler.implementationProject(path: String) {
|
||||
add("implementation", project(path))
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementationProject(":jellyfin-model")
|
||||
implementation(projects.jellyfinModel)
|
||||
|
||||
// HTTP
|
||||
implementation(Dependencies.KotlinX.coroutinesCore)
|
||||
|
@ -3,8 +3,8 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
apiProject(":jellyfin-api")
|
||||
apiProject(":jellyfin-model")
|
||||
api(projects.jellyfinApi)
|
||||
api(projects.jellyfinModel)
|
||||
|
||||
implementation(Dependencies.KotlinX.coroutinesCore)
|
||||
implementation(Dependencies.KotlinX.serializationJson)
|
||||
|
@ -69,7 +69,7 @@ afterEvaluate {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
apiProject(":jellyfin-core")
|
||||
api(projects.jellyfinCore)
|
||||
|
||||
implementation(Dependencies.Kotlin.stdlib)
|
||||
|
||||
|
@ -9,7 +9,7 @@ application {
|
||||
|
||||
dependencies {
|
||||
// Depend on the library project
|
||||
implementationProject(":jellyfin-core")
|
||||
implementation(projects.jellyfinCore)
|
||||
|
||||
// Use Kotlin stdlib
|
||||
implementation(Dependencies.Kotlin.stdlib)
|
||||
|
@ -1,3 +1,5 @@
|
||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||
|
||||
// Core
|
||||
include(":jellyfin-core")
|
||||
include(":jellyfin-model")
|
||||
|
Loading…
Reference in New Issue
Block a user