Add maven plugin and migrate to kts

This commit is contained in:
ligi 2021-12-30 09:00:08 +01:00
parent 70f175e5e1
commit bec23dbc0a
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D
2 changed files with 23 additions and 12 deletions

View File

@ -1,12 +0,0 @@
plugins {
id("com.google.devtools.ksp").version("1.6.10-1.0.2")
}
dependencies {
ksp("com.squareup.moshi:moshi-kotlin-codegen:1.13.0")
implementation "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN_VERSION}"
implementation 'com.squareup.moshi:moshi:1.13.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
}

23
model/build.gradle.kts Normal file
View File

@ -0,0 +1,23 @@
plugins {
id("com.google.devtools.ksp").version("1.6.10-1.0.2")
id("maven-publish")
}
publishing {
publications {
create<MavenPublication>("maven") {
version = "1.0"
from(components["java"])
}
}
}
dependencies {
ksp("com.squareup.moshi:moshi-kotlin-codegen:1.13.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
implementation("com.squareup.moshi:moshi:1.13.0")
implementation("com.squareup.okhttp3:okhttp:4.9.3")
}