@@ -30,7 +30,7 @@ buildscript {
3030 mavenCentral()
3131 }
3232 dependencies {
33- classpath ' com.android.tools.build:gradle:8.1.2 '
33+ classpath ' com.android.tools.build:gradle:8.6.0 '
3434 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
3535
3636 // NOTE: Do not place your application dependencies here; they belong
@@ -43,6 +43,19 @@ plugins {
4343 id ' io.github.gradle-nexus.publish-plugin' version ' 2.0.0'
4444}
4545
46+ subprojects {
47+ tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
48+ kotlinOptions {
49+ jvmTarget = " 17"
50+ }
51+ }
52+
53+ tasks. withType(JavaCompile ). configureEach {
54+ sourceCompatibility = " 17"
55+ targetCompatibility = " 17"
56+ }
57+ }
58+
4659allprojects {
4760 tasks. withType(Test ). configureEach {
4861 maxParallelForks = Runtime . runtime. availableProcessors(). intdiv(2 ) ?: 1
@@ -209,7 +222,7 @@ configure(publishedProjects) {
209222
210223 android. libraryVariants. all { variant ->
211224 task(" ${ variant.name} JavadocJar" , type : Jar , dependsOn : " ${ variant.name} Javadoc" ) {
212- classifier = ' javadoc'
225+ archiveClassifier = ' javadoc'
213226 from tasks[" ${ variant.name} Javadoc" ]. destinationDir
214227 }
215228
@@ -219,7 +232,7 @@ configure(publishedProjects) {
219232
220233 android. libraryVariants. all { variant ->
221234 task(" ${ variant.name} SourcesJar" , type : Jar ) {
222- classifier = ' sources'
235+ archiveClassifier = ' sources'
223236 from variant. javaCompileProvider. get(). source
224237 }
225238 project. artifacts. add(" archives" , tasks[" ${ variant.name} SourcesJar" ]);
0 commit comments