From bec23dbc0af1d1e86f4da644ed89c8b09aefaede Mon Sep 17 00:00:00 2001 From: ligi Date: Thu, 30 Dec 2021 09:00:08 +0100 Subject: [PATCH] Add maven plugin and migrate to kts --- model/build.gradle | 12 ------------ model/build.gradle.kts | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 12 deletions(-) delete mode 100644 model/build.gradle create mode 100644 model/build.gradle.kts diff --git a/model/build.gradle b/model/build.gradle deleted file mode 100644 index 0398edc1..00000000 --- a/model/build.gradle +++ /dev/null @@ -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' -} - diff --git a/model/build.gradle.kts b/model/build.gradle.kts new file mode 100644 index 00000000..1d4c3158 --- /dev/null +++ b/model/build.gradle.kts @@ -0,0 +1,23 @@ +plugins { + id("com.google.devtools.ksp").version("1.6.10-1.0.2") + id("maven-publish") +} + +publishing { + publications { + create("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") +} +