diff --git a/countrycp/build.gradle.kts b/countrycp/build.gradle.kts index 71cc7b7..ba23413 100644 --- a/countrycp/build.gradle.kts +++ b/countrycp/build.gradle.kts @@ -1,16 +1,3 @@ -buildscript { - repositories { - google() - mavenCentral() - mavenLocal() - } - - dependencies { - classpath(libs.gradle) - classpath(libs.kotlin.gradle.plugin) - } -} - @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed plugins { alias(libs.plugins.androidLibrary) @@ -42,11 +29,11 @@ android { } } compileOptions { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = "11" + jvmTarget = JavaVersion.VERSION_17.toString() } buildFeatures { compose = true @@ -56,17 +43,6 @@ android { } } -java { - toolchain { - languageVersion = JavaLanguageVersion.of(17) - } -} - -java { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 -} - dependencies { implementation(libs.androidx.core.ktx) @@ -84,12 +60,16 @@ dependencies { androidTestImplementation(libs.androidx.espresso.core) } -publishing { - publications { - register("release") { - groupId = "com.github.tfaki" - artifactId = "countrycp" - version = "1.0.0" +afterEvaluate { + publishing { + publications { + register("release") { + groupId = "com.github.tfaki" + artifactId = "countrycp" + version = "1.0.1" + + from(components["release"]) + } } } } \ No newline at end of file