@@ -2,7 +2,7 @@ import net.ltgt.gradle.errorprone.errorprone
22
33buildscript {
44 dependencies {
5- classpath(" fr.inria.gforge.spoon:spoon-core:9 .0.0" ) // bump for EIG
5+ classpath(" fr.inria.gforge.spoon:spoon-core:10 .0.0" ) // bump for EIG
66 }
77}
88
@@ -30,6 +30,8 @@ val ap by sourceSets.registering {
3030// Project dependencies
3131val adventureVersion: String by project
3232val configurateVersion: String by project
33+ val gsonVersion: String by project
34+ val guavaVersion: String by project
3335val log4jVersion: String by project
3436val mathVersion: String by project
3537dependencies {
@@ -41,13 +43,13 @@ dependencies {
4143
4244 // Directly tied to what's available from Minecraft
4345 api(" org.apache.logging.log4j:log4j-api:$log4jVersion " )
44- api(" com.google.guava:guava:31.0.1-jre " ) {
46+ api(" com.google.guava:guava:$guavaVersion " ) {
4547 exclude(group = " com.google.code.findbugs" , module = " jsr305" ) // We don't want to use jsr305, use checkerframework
4648 exclude(group = " org.checkerframework" , module = " checker-qual" ) // We use our own version
4749 exclude(group = " com.google.j2objc" , module = " j2objc-annotations" )
4850 exclude(group = " org.codehaus.mojo" , module = " animal-sniffer-annotations" )
4951 }
50- api(" com.google.code.gson:gson:2.8.8 " )
52+ api(" com.google.code.gson:gson:$gsonVersion " )
5153
5254 // Adventure
5355 api(platform(" net.kyori:adventure-bom:$adventureVersion " ))
@@ -127,7 +129,7 @@ dependencies {
127129
128130tasks {
129131 genEventImpl {
130- sourceCompatibility = " 15 "
132+ sourceCompatibility = " 16 "
131133 destinationDir = project.layout.buildDirectory.dir(" generated/event-factory" ).get().asFile
132134
133135 outputFactory = " org.spongepowered.api.event.SpongeEventFactory"
@@ -173,9 +175,9 @@ tasks {
173175 links(
174176 " https://logging.apache.org/log4j/log4j-$log4jVersion /log4j-api/apidocs/" ,
175177 " https://google.github.io/guice/api-docs/5.0.1/javadoc/" ,
176- " https://guava.dev/releases/21.0 /api/docs/" ,
178+ " https://guava.dev/releases/$guavaVersion /api/docs/" ,
177179 " https://configurate.aoeu.xyz/$configurateVersion /apidocs/" ,
178- " https://www.javadoc.io/doc/com.google.code.gson/gson/2.8.0 /" ,
180+ " https://www.javadoc.io/doc/com.google.code.gson/gson/$gsonVersion /" ,
179181 " https://jd.spongepowered.org/math/$mathVersion "
180182 )
181183 sequenceOf(" api" , " key" , " text-serializer-gson" , " text-serializer-legacy" , " text-serializer-plain" ).forEach {
0 commit comments