@@ -60,24 +60,20 @@ sponge {
6060}
6161
6262dependencies {
63- api(project(" :worldedit-core" ))
64- api(project(" :worldedit-libs:sponge" ))
65- api(" org.spongepowered:spongeapi:7.1.0" ) {
66- exclude(group = " org.slf4j" , module = " slf4j-api" )
67- }
68- implementation(enforcedPlatform(" org.apache.logging.log4j:log4j-bom:2.8.1" ) {
69- because(" Sponge 8 provides Log4J at 2.8.1" )
70- })
71- api(" org.apache.logging.log4j:log4j-api" )
72- api(" org.bstats:bstats-sponge:1.7" )
73- testImplementation(" org.mockito:mockito-core:5.18.0" )
63+ " api" (project(" :worldedit-core" ))
64+ " api" (project(" :worldedit-libs:sponge" ))
65+
66+ " api" (libs.log4j.api)
67+ " implementation" (libs.bstats.sponge)
68+ " implementation" (libs.fastutil)
69+ " testImplementation" (libs.mockito.core)
70+
71+ // Silence some warnings, since apparently this isn't on the compile classpath like it should be.
72+ " compileOnly" (libs.errorprone.annotations)
7473}
7574
76- tasks.named<Jar >(" jar" ) {
77- manifest {
78- attributes(" Class-Path" to CLASSPATH ,
79- " WorldEdit-Version" to project.version)
80- }
75+ configure<BasePluginExtension > {
76+ archivesName.set(" ${project.name} -api${libs.versions.sponge.api.major.get()} " )
8177}
8278
8379tasks.named<ShadowJar >(" shadowJar" ) {
0 commit comments