From 1423005cd18c46f251aff0b436e61eea6869079c Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 28 Mar 2024 20:03:56 +0000 Subject: [PATCH] Update gradle wrapper to 8.7. --- build.gradle | 12 ++++++------ gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 3f52e88..45fcc83 100644 --- a/build.gradle +++ b/build.gradle @@ -17,14 +17,14 @@ dependencies { // javac -h tasks.register('generateJniHeaders', JavaCompile) { classpath = sourceSets.main.compileClasspath - destinationDir file("${buildDir}/generated/jni") + destinationDir file("${layout.buildDirectory}/generated/jni") source = sourceSets.main.java options.compilerArgs += [ - '-h', file("${buildDir}/generated/jni"), - '-d', file("${buildDir}/generated/jni-classes"), + '-h', file("${layout.buildDirectory}/generated/jni"), + '-d', file("${layout.buildDirectory}/generated/jni-classes"), ] doLast { - delete file("${buildDir}/generated/jni-classes") + delete file("${layout.buildDirectory}/generated/jni-classes") } } @@ -36,6 +36,8 @@ rustImport { java { withSourcesJar() withJavadocJar() + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } signing { @@ -44,8 +46,6 @@ signing { group = 'rocks.kavin' version = '1.0.13' -sourceCompatibility = JavaVersion.VERSION_17 -targetCompatibility = JavaVersion.VERSION_17 publishing { repositories { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index cfda645..20db9ad 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://downloads.gradle.org/distributions/gradle-7.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists