diff --git a/build.gradle.kts b/build.gradle.kts index dc723ff..fa91638 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ allprojects { repositories { - jcenter() + mavenCentral() google() } } diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index dd0947a..206ccd0 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -3,9 +3,8 @@ plugins { } repositories { - google() mavenCentral() - jcenter() + google() maven { setUrl("https://plugins.gradle.org/m2/") } } diff --git a/buildSrc/buildSrc/build.gradle.kts b/buildSrc/buildSrc/build.gradle.kts index 3d7a954..876c922 100644 --- a/buildSrc/buildSrc/build.gradle.kts +++ b/buildSrc/buildSrc/build.gradle.kts @@ -3,5 +3,5 @@ plugins { } repositories { - jcenter() + mavenCentral() } diff --git a/buildSrc/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/buildSrc/src/main/kotlin/Dependencies.kt index a2cb9a6..0c2eede 100644 --- a/buildSrc/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/buildSrc/src/main/kotlin/Dependencies.kt @@ -1,3 +1,4 @@ +// Main libraries object Kotlin { private const val version = "1.4.32" @@ -32,10 +33,10 @@ object AndroidX { object Coroutines { - private const val mtVersion = "1.4.3-native-mt" + private const val version = "1.4.3-native-mt" - const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$mtVersion" - const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$mtVersion" + const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version" + const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version" } // Test libraries @@ -52,10 +53,10 @@ object Jacoco { const val version = "0.8.6" } -// Publishing +// Publishing libraries object Publishing { const val groupId = "com.github.kittinunf.cored" - const val version = "0.1.1" + const val version = "0.1.2" } object GradleNexus { diff --git a/cored/build.gradle.kts b/cored/build.gradle.kts index e533e57..966f302 100644 --- a/cored/build.gradle.kts +++ b/cored/build.gradle.kts @@ -27,7 +27,10 @@ android { } kotlin { - android() + android { + publishLibraryVariants("release", "debug") + } + ios { binaries { framework { diff --git a/plugins/src/main/kotlin/publication.gradle.kts b/plugins/src/main/kotlin/publication.gradle.kts index f896e21..bc8bbde 100644 --- a/plugins/src/main/kotlin/publication.gradle.kts +++ b/plugins/src/main/kotlin/publication.gradle.kts @@ -9,13 +9,11 @@ plugins { signing } -// Stub secrets to let the project sync and build without the publication values set up ext["signing.key"] = null ext["signing.password"] = null ext["sonatype.username"] = null ext["sonatype.password"] = null -// Grabbing secrets from local.properties file or from environment variables, which could be used on CI val secretPropsFile = project.rootProject.file("local.properties") if (secretPropsFile.exists()) { secretPropsFile.reader().use { @@ -40,7 +38,6 @@ val isReleaseBuild: Boolean get() = properties.containsKey("release") publishing { - // Configure maven central repository repositories { maven { name = "sonatype" diff --git a/settings.gradle.kts b/settings.gradle.kts index 5a1a7de..eb5b49d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,8 +1,7 @@ pluginManagement { repositories { - jcenter() - google() mavenCentral() + google() maven { setUrl("https://dl.bintray.com/kotlin/kotlin") } maven { setUrl("https://kotlin.bintray.com/kotlinx") }