Skip to content

Commit ca49458

Browse files
committed
A bit of cleanup.
Definitely did not accidentally make a 40MB jar halfway through.
1 parent 5749210 commit ca49458

11 files changed

Lines changed: 7 additions & 61 deletions

File tree

build-logic/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ plugins {
44

55
repositories {
66
gradlePluginPortal()
7-
maven {
8-
name = "EngineHub Repository"
9-
url = uri("https://maven.enginehub.org/repo/")
10-
}
117
}
128

139
dependencies {
@@ -16,7 +12,6 @@ dependencies {
1612
implementation(libs.grgit)
1713
implementation(libs.shadow)
1814
implementation(libs.jfrog.buildinfo)
19-
implementation(libs.paperweight)
2015
implementation(libs.gson)
2116

2217
constraints {

build-logic/src/main/kotlin/buildlogic.common-java.gradle.kts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ plugins {
88
id("buildlogic.common")
99
}
1010

11-
val commonJava = extensions.create<buildlogic.CommonJavaExtension>("commonJava")
12-
commonJava.banSlf4j.convention(true)
13-
1411
tasks
1512
.withType<JavaCompile>()
1613
.matching { it.name == "compileJava" || it.name == "compileTestJava" }
@@ -40,9 +37,6 @@ dependencies {
4037
"testImplementation"(platform(stringyLibs.getLibrary("junit-bom")))
4138
"testImplementation"(stringyLibs.getLibrary("junit-jupiter-api"))
4239
"testImplementation"(stringyLibs.getLibrary("junit-jupiter-params"))
43-
"testImplementation"(platform(stringyLibs.getLibrary("mockito-bom")))
44-
"testImplementation"(stringyLibs.getLibrary("mockito-core"))
45-
"testImplementation"(stringyLibs.getLibrary("mockito-junit-jupiter"))
4640
"testRuntimeOnly"(stringyLibs.getLibrary("junit-jupiter-engine"))
4741
}
4842

@@ -66,16 +60,6 @@ configure<JavaPluginExtension> {
6660
withSourcesJar()
6761
}
6862

69-
configurations["compileClasspath"].apply {
70-
resolutionStrategy.componentSelection {
71-
withModule("org.slf4j:slf4j-api") {
72-
if (commonJava.banSlf4j.get()) {
73-
reject("No SLF4J allowed on compile classpath")
74-
}
75-
}
76-
}
77-
}
78-
7963
tasks.named("check").configure {
8064
dependsOn("checkstyleMain", "checkstyleTest")
8165
}

build-logic/src/main/kotlin/buildlogic.libs.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ tasks.register<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("jar"
4747
exclude {
4848
it.moduleGroup == "org.jetbrains.kotlin"
4949
}
50-
51-
include(dependency("org.enginehub:squirrelid"))
52-
include(dependency("org.khelekore:prtree"))
5350
}
5451

5552
relocations.forEach { (from, to) ->
@@ -122,7 +119,7 @@ val apiElements = project.configurations.register("apiElements") {
122119
attribute(Category.CATEGORY_ATTRIBUTE, project.objects.named(Category.LIBRARY))
123120
attribute(Bundling.BUNDLING_ATTRIBUTE, project.objects.named(Bundling.SHADOWED))
124121
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements.JAR))
125-
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 16)
122+
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21)
126123
}
127124
outgoing.artifact(tasks.named("jar"))
128125
}
@@ -137,7 +134,7 @@ val runtimeElements = project.configurations.register("runtimeElements") {
137134
attribute(Category.CATEGORY_ATTRIBUTE, project.objects.named(Category.LIBRARY))
138135
attribute(Bundling.BUNDLING_ATTRIBUTE, project.objects.named(Bundling.SHADOWED))
139136
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements.JAR))
140-
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 16)
137+
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21)
141138
}
142139
outgoing.artifact(tasks.named("jar"))
143140
}

build-logic/src/main/kotlin/buildlogic.platform.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJ
1010
include(project(":worldguard-core"))
1111

1212
relocate("org.flywaydb", "com.sk89q.worldguard.internal.flywaydb") {
13-
include(dependency("org.flywaydb:flyway-core:3.0"))
13+
include(dependency("org.flywaydb:flyway-core"))
1414
}
1515
exclude("com.google.code.findbugs:jsr305")
1616
}

build-logic/src/main/kotlin/buildlogic/CommonJavaExtension.kt

Lines changed: 0 additions & 7 deletions
This file was deleted.

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import org.ajoberstar.grgit.Grgit
22

33
plugins {
4-
alias(libs.plugins.codecov)
54
id("buildlogic.common")
65
id("buildlogic.artifactory-root")
76
}

config/checkstyle/import-control.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<allow pkg="javax"/>
88
<allow pkg="org.junit"/>
99
<allow pkg="org.hamcrest"/>
10-
<allow pkg="org.mockito"/>
1110
<allow pkg="junit.framework"/>
1211
<allow pkg="com.sk89q"/>
1312
<allow pkg="com.google.common"/>

gradle/libs.versions.toml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[plugins]
2-
codecov = "org.enginehub.codecov:0.2.0"
3-
41
[versions]
52
worldedit = "7.3.0"
63

@@ -9,7 +6,7 @@ minimumAsm = "9.7"
96
minimumJdependency = "2.10"
107
minimumTinyRemapper = "0.8.11"
118

12-
lang-version = "1450"
9+
# lang-version = ""
1310

1411
[libraries]
1512

@@ -18,8 +15,6 @@ grgit = "org.ajoberstar.grgit:grgit-gradle:5.2.2"
1815
shadow = "com.github.johnrengelman:shadow:8.1.1"
1916
jfrog-buildinfo = "org.jfrog.buildinfo:build-info-extractor-gradle:5.2.0"
2017

21-
paperweight = "io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.7.1"
22-
2318
squirrelid = "org.enginehub:squirrelid:0.3.2"
2419

2520
autoService = "com.google.auto.service:auto-service:1.1.1"
@@ -32,10 +27,6 @@ junit-jupiter-api.module = "org.junit.jupiter:junit-jupiter-api"
3227
junit-jupiter-params.module = "org.junit.jupiter:junit-jupiter-params"
3328
junit-jupiter-engine.module = "org.junit.jupiter:junit-jupiter-engine"
3429

35-
mockito-bom = "org.mockito:mockito-bom:5.11.0"
36-
mockito-core.module = "org.mockito:mockito-core"
37-
mockito-junit-jupiter.module = "org.mockito:mockito-junit-jupiter"
38-
3930
spigot = "org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT"
4031
paperApi = "io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT"
4132
paperLib = "io.papermc:paperlib:1.0.8"
@@ -45,7 +36,6 @@ bstats-bukkit = "org.bstats:bstats-bukkit:2.2.1"
4536

4637
prtree = "org.khelekore:prtree:1.5.0"
4738

48-
# Also update in build-logic/src/main/kotlin/buildlogic.platform.gradle.kts
4939
flyway-core = "org.flywaydb:flyway-core:3.0"
5040

5141
commandbook = "com.sk89q:commandbook:2.3"

settings.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
pluginManagement {
22
repositories {
33
gradlePluginPortal()
4-
maven {
5-
name = "EngineHub"
6-
url = uri("https://maven.enginehub.org/repo/")
7-
}
84
}
95
}
106
plugins {

worldguard-bukkit/build.gradle.kts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ plugins {
55
id("buildlogic.platform")
66
}
77

8-
repositories {
9-
maven {
10-
name = "Spigot"
11-
url = uri("https://hub.spigotmc.org/nexus/content/groups/public")
12-
}
13-
}
14-
158
val localImplementation = configurations.create("localImplementation") {
169
description = "Dependencies used locally, but provided by the runtime Bukkit implementation"
1710
isCanBeConsumed = false
@@ -58,11 +51,9 @@ tasks.named<ShadowJar>("shadowJar") {
5851
include(dependency(":worldguard-core"))
5952
include(dependency("org.bstats:"))
6053
include(dependency("io.papermc:paperlib"))
61-
include(dependency("co.aikar:minecraft-timings"))
6254

6355
relocate("org.bstats", "com.sk89q.worldguard.bukkit.bstats")
6456
relocate("io.papermc.lib", "com.sk89q.worldguard.bukkit.paperlib")
65-
relocate("co.aikar.timings.lib", "com.sk89q.worldguard.bukkit.timingslib")
6657
}
6758
}
6859

0 commit comments

Comments
 (0)