Skip to content

Commit f2aec4b

Browse files
committed
JDK 16 support. Upgrades gradle and many dependencies.
1 parent a19b557 commit f2aec4b

5 files changed

Lines changed: 22 additions & 11 deletions

File tree

build.gradle.kts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ plugins {
55
id("java")
66
id("java-library")
77
id("maven-publish")
8-
id("com.github.johnrengelman.shadow") version "5.2.0" apply false
8+
id("com.github.johnrengelman.shadow") version "7.0.0" apply false
99
id("org.shipkit.shipkit-auto-version") version "1.1.1"
1010
id("org.shipkit.shipkit-changelog") version "1.1.4"
1111
id("org.shipkit.shipkit-github-release") version "1.1.4"
12-
id("dev.minco.gradle.defaults-plugin") version "0.2.8"
12+
id("dev.minco.gradle.defaults-plugin") version "0.2.26"
1313
}
1414

1515
apply(from = "properties.gradle")
@@ -69,10 +69,11 @@ allprojects {
6969
dependencies {
7070
testImplementation("junit:junit:4.13.2")
7171
implementation("me.nallar.whocalled:WhoCalled:1.1")
72-
api("dev.minco:java-transformer:1.10.1")
72+
api("dev.minco:java-transformer:1.10.6")
7373

74-
val lombok = "org.projectlombok:lombok:1.18.18"
75-
implementation(lombok)
74+
val lombok = "org.projectlombok:lombok:1.18.20"
75+
compileOnly(lombok)
76+
testCompileOnly(lombok)
7677
annotationProcessor(lombok)
7778
testAnnotationProcessor(lombok)
7879
}

gradle-plugin/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ plugins {
1010
apply(from = "groovy.gradle")
1111

1212
dependencies {
13-
val lombok = "org.projectlombok:lombok:1.18.18"
14-
implementation(lombok)
13+
val lombok = "org.projectlombok:lombok:1.18.20"
14+
compileOnly(lombok)
15+
testCompileOnly(lombok)
1516
annotationProcessor(lombok)
1617
testAnnotationProcessor(lombok)
1718
}

gradle-plugin/groovy.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication
44

55
group = 'dev.minco.mixin'
66

7-
configurations.compile.dependencies.remove dependencies.gradleApi()
8-
configurations.all { it.dependencies.remove project.dependencies.gradleApi() }
7+
//configurations.compile.dependencies.remove dependencies.gradleApi()
8+
//configurations.all { it.dependencies.remove project.dependencies.gradleApi() }
99
dependencies { compileOnly gradleApi() }
1010

1111
//task relocateShadowJar(type: ConfigureShadowRelocation) {
@@ -22,7 +22,10 @@ shadowJar {
2222
dependencies {
2323
//compileOnly 'com.google.guava:guava:25.1-jre' // bundled with gradle
2424
implementation parent
25-
testImplementation('org.spockframework:spock-core:1.3-groovy-2.4') {
25+
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
26+
exclude module: 'groovy-all'
27+
}
28+
testImplementation('org.spockframework:spock-junit4:2.0-groovy-3.0') {
2629
exclude module: 'groovy-all'
2730
}
2831
testImplementation('io.github.classgraph:classgraph:4.8.59')

gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# The exports are needed due to https://github.com/diffplug/spotless/issues/834
2+
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
3+
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
4+
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
5+
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
6+
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Thu Jan 23 11:34:41 GMT 2020
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-all.zip
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip
33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)