File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ subprojects {
3737 }
3838}
3939
40- task clean ( type : Delete ) {
40+ tasks . register( ' clean ' , Delete ) {
4141 delete rootProject. buildDir
4242}
4343
44- task installGitHooks ( type : Copy , group : " development " ) {
44+ tasks . register( ' installGitHooks ' , Copy ) {
4545 def sourceFolder = " ${ rootProject.projectDir} /scripts/hooks"
4646 def destFolder = " ${ rootProject.projectDir} /.git/hooks"
4747
Original file line number Diff line number Diff line change @@ -16,19 +16,13 @@ android.nonTransitiveRClass=false
1616android.nonFinalResIds =false
1717
1818# JVM arguments to optimize heap usage, enable heap dump on out-of-memory errors, and set the file encoding
19- org.gradle.jvmargs =-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
19+ org.gradle.jvmargs =-Xmx3g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8
2020org.gradle.dependency.verification.console =verbose
21- kotlin.daemon.jvmargs =-Xmx4096m
21+ kotlin.daemon.jvmargs =-Xmx3072m
2222org.gradle.caching =true
2323org.gradle.parallel =true
2424org.gradle.configureondemand =true
2525android.defaults.buildfeatures.resvalues =true
26- android.sdk.defaultTargetSdkToCompileSdkIfUnset =false
27- android.enableAppCompileTimeRClass =false
2826android.usesSdkInManifest.disallowed =false
2927android.uniquePackageNames =false
3028android.dependency.useConstraints =true
31- android.r8.strictFullModeForKeepRules =false
32- android.r8.optimizedResourceShrinking =false
33- android.builtInKotlin =false
34- android.newDsl =false
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ plugins {
3333}
3434
3535apply plugin : ' com.android.library'
36- apply plugin : ' kotlin-android'
3736apply plugin : ' kotlin-parcelize'
3837apply from : " $rootProject . projectDir /jacoco.gradle"
3938apply plugin : " com.github.spotbugs"
@@ -157,12 +156,14 @@ android {
157156 }
158157
159158 compileOptions {
160- sourceCompatibility JavaVersion . VERSION_17
161- targetCompatibility JavaVersion . VERSION_17
159+ sourceCompatibility JavaVersion . VERSION_21
160+ targetCompatibility JavaVersion . VERSION_21
162161 }
163-
164- kotlinOptions {
165- jvmTarget = ' 17'
162+
163+ kotlin {
164+ jvmToolchain {
165+ languageVersion. set(JavaLanguageVersion . of(21 ))
166+ }
166167 }
167168
168169 testOptions {
@@ -178,6 +179,12 @@ android {
178179 }
179180
180181 namespace = ' com.owncloud.android.lib'
182+
183+ publishing {
184+ singleVariant(" release" ) {
185+ withSourcesJar()
186+ }
187+ }
181188}
182189
183190tasks. register(" combinedTestReport" , JacocoReport ) {
You can’t perform that action at this time.
0 commit comments