Skip to content

Commit 5133c86

Browse files
committed
chore(build): update
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent f5c850e commit 5133c86

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

gradle.properties

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,13 @@ android.nonTransitiveRClass=false
1616
android.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
2020
org.gradle.dependency.verification.console=verbose
21-
kotlin.daemon.jvmargs=-Xmx4096m
21+
kotlin.daemon.jvmargs=-Xmx3072m
2222
org.gradle.caching=true
2323
org.gradle.parallel=true
2424
org.gradle.configureondemand=true
2525
android.defaults.buildfeatures.resvalues=true
26-
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
27-
android.enableAppCompileTimeRClass=false
2826
android.usesSdkInManifest.disallowed=false
2927
android.uniquePackageNames=false
3028
android.dependency.useConstraints=true
31-
android.r8.strictFullModeForKeepRules=false
32-
android.r8.optimizedResourceShrinking=false
33-
android.builtInKotlin=false
34-
android.newDsl=false

library/build.gradle

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ plugins {
3333
}
3434

3535
apply plugin: 'com.android.library'
36-
apply plugin: 'kotlin-android'
3736
apply plugin: 'kotlin-parcelize'
3837
apply from: "$rootProject.projectDir/jacoco.gradle"
3938
apply 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

183190
tasks.register("combinedTestReport", JacocoReport) {

0 commit comments

Comments
 (0)