Skip to content

Commit de2c60b

Browse files
committed
Update Gradle to v9.4
1 parent a0692cc commit de2c60b

49 files changed

Lines changed: 144 additions & 133 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
build-gradle:
1919
strategy:
2020
matrix:
21-
os: [ubuntu-latest, windows-latest, macos-latest]
21+
os: [ubuntu-latest] # , windows-latest, macos-latest]
2222

2323
runs-on: ${{ matrix.os }}
2424

build.gradle

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id 'org.cadixdev.licenser' version '0.6.1' apply false
2+
id 'dev.yumi.gradle.licenser' version '2.2.2' apply false
33
id 'com.gradleup.shadow' version '8.3.8' apply false
4-
id 'fabric-loom' version '1.13-SNAPSHOT' apply false
4+
id 'net.fabricmc.fabric-loom-remap' version '1.15-SNAPSHOT' apply false
55
}
66

77
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
@@ -16,7 +16,7 @@ subprojects {
1616
apply plugin: 'java'
1717
apply plugin: 'idea'
1818
apply plugin: 'java-library'
19-
apply plugin: 'org.cadixdev.licenser'
19+
apply plugin: 'dev.yumi.gradle.licenser'
2020

2121
ext {
2222
baseVersion = '1.10'
@@ -60,8 +60,7 @@ subprojects {
6060
}
6161

6262
license {
63-
header = rootProject.file('HEADER.txt')
64-
include '**/*.java'
63+
rule(rootProject.file("HEADER.txt"))
6564
}
6665

6766
repositories {
@@ -82,12 +81,9 @@ subprojects {
8281
}
8382

8483
def determinePatchVersion() {
85-
def tagInfo = new ByteArrayOutputStream()
86-
exec {
84+
def tagInfo = providers.exec {
8785
commandLine 'git', 'describe', '--tags'
88-
standardOutput = tagInfo
89-
}
90-
tagInfo = tagInfo.toString()
86+
}.standardOutput.asText.get().trim()
9187

92-
return tagInfo.contains('-') ? tagInfo.split("-")[1] : 0
88+
return tagInfo.contains('-') ? tagInfo.split('-')[1] : 0
9389
}

gradle/wrapper/gradle-wrapper.jar

5.08 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pluginManagement {
22
repositories {
33
gradlePluginPortal()
4+
mavenCentral()
45
maven {
56
name = 'Fabric'
67
url = 'https://maven.fabricmc.net/'
@@ -17,7 +18,7 @@ pluginManagement {
1718
}
1819

1920
plugins {
20-
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
21+
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'
2122
}
2223

2324
rootProject.name = 'spark'

spark-api/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ plugins {
55
version = '0.1-SNAPSHOT'
66

77
dependencies {
8-
compileOnly 'org.checkerframework:checker-qual:3.44.0'
9-
compileOnly 'org.jetbrains:annotations:24.1.0'
8+
compileOnly 'org.jspecify:jspecify:1.0.0'
109
}
1110

1211
license {
13-
header = project.file('HEADER.txt')
12+
rule(project.file('HEADER.txt'))
1413
}
1514

1615
java {

spark-api/src/main/java/me/lucko/spark/api/Spark.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
import me.lucko.spark.api.statistic.misc.DoubleAverageInfo;
3131
import me.lucko.spark.api.statistic.types.DoubleStatistic;
3232
import me.lucko.spark.api.statistic.types.GenericStatistic;
33-
import org.checkerframework.checker.nullness.qual.NonNull;
34-
import org.checkerframework.checker.nullness.qual.Nullable;
35-
import org.jetbrains.annotations.Unmodifiable;
33+
import org.jspecify.annotations.NonNull;
34+
import org.jspecify.annotations.Nullable;
3635

3736
import java.util.Map;
3837

@@ -82,7 +81,7 @@ public interface Spark {
8281
*
8382
* @return the garbage collector statistics
8483
*/
85-
@NonNull @Unmodifiable Map<String, GarbageCollector> gc();
84+
@NonNull Map<String, GarbageCollector> gc();
8685

8786
/**
8887
* Gets a placeholder resolver.

spark-api/src/main/java/me/lucko/spark/api/SparkProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
package me.lucko.spark.api;
2727

28-
import org.checkerframework.checker.nullness.qual.NonNull;
28+
import org.jspecify.annotations.NonNull;
2929

3030
/**
3131
* Singleton provider for {@link Spark}.

0 commit comments

Comments
 (0)