From bdb09ede3aad7ca9f368ce218c4d8c26a09cdbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Thu, 29 Jun 2023 10:54:01 +0200 Subject: [PATCH] Package kotlin sources (#10) --- buildSrc/src/main/kotlin/Config.kt | 2 +- data/build.gradle.kts | 6 ++++++ dataprovider-paging/build.gradle.kts | 6 ++++++ dataprovider-retrofit/build.gradle.kts | 6 ++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index 37a4e5d..2f6ecbf 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -5,7 +5,7 @@ object Config { const val major = 0 const val minor = 2 - const val patch = 0 + const val patch = 1 const val versionName = "$major.$minor.$patch" const val maven_group = "ch.srg.data.provider" diff --git a/data/build.gradle.kts b/data/build.gradle.kts index c936b2a..ecb0e66 100644 --- a/data/build.gradle.kts +++ b/data/build.gradle.kts @@ -35,6 +35,12 @@ android { // https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/dsl/LintOptions abortOnError = false } + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } } dependencies { diff --git a/dataprovider-paging/build.gradle.kts b/dataprovider-paging/build.gradle.kts index b68bf73..8113ff4 100644 --- a/dataprovider-paging/build.gradle.kts +++ b/dataprovider-paging/build.gradle.kts @@ -35,6 +35,12 @@ android { // https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/dsl/LintOptions abortOnError = false } + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } } dependencies { diff --git a/dataprovider-retrofit/build.gradle.kts b/dataprovider-retrofit/build.gradle.kts index cfaba54..bf891b6 100644 --- a/dataprovider-retrofit/build.gradle.kts +++ b/dataprovider-retrofit/build.gradle.kts @@ -35,6 +35,12 @@ android { // https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/dsl/LintOptions abortOnError = false } + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } } dependencies {