-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert AEF from maven to Gradle * Downgrade `caffeine` version from 3.1.8 -> 2.9.3 for `AnarchyExploitFixesLegacy`, for Java 8 compatibility
- Loading branch information
1 parent
b51708f
commit 6953539
Showing
16 changed files
with
549 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,19 +22,21 @@ jobs: | |
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew clean build | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: AnarchyExploitFixes | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: AnarchyExploitFixesLegacy/target/AnarchyExploitFixes-Legacy*.jar | ||
path: AnarchyExploitFixesLegacy/build/libs/AnarchyExploitFixes-Legacy*.jar | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: AnarchyExploitFixes | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: AnarchyExploitFixesFolia/target/AnarchyExploitFixes-Folia*.jar | ||
path: AnarchyExploitFixesFolia//build/libs/AnarchyExploitFixes-Folia*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
*.jar | ||
hs_err_pid* | ||
|
||
# Maven | ||
target/ | ||
# Gradle | ||
.gradle/ | ||
build/ | ||
|
||
# IntelliJ | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
plugins { | ||
id("me.moomoo.anarchyexploitfixes.wrapper") | ||
id("com.github.johnrengelman.shadow") version "8.1.1" | ||
} | ||
|
||
dependencies { | ||
compileOnly("dev.folia:folia-api:1.20.2-R0.1-SNAPSHOT") | ||
api("com.github.ben-manes.caffeine:caffeine:3.1.8") // Fast caching | ||
} | ||
|
||
configure<JavaPluginExtension> { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> { | ||
archiveFileName = "${rootProject.name}-${project.name}-${project.version}.${archiveExtension.get()}" | ||
exclude( | ||
"LICENSE", | ||
"module-info.class", | ||
"META-INF/MANIFEST.MF", | ||
"META-INF/LICENSE", | ||
"META-INF/LICENSE.txt", | ||
"META-INF/NOTICE.txt", | ||
"com/cryptomorin/xseries/XBiome*", | ||
"com/cryptomorin/xseries/XEntity*", | ||
"com/cryptomorin/xseries/XPotion*", | ||
"com/cryptomorin/xseries/NMSExtras*", | ||
"com/cryptomorin/xseries/NoteBlockMusic*", | ||
"com/cryptomorin/xseries/SkullCacheListener*" | ||
) | ||
relocate("com.github.benmanes.caffeine", "me.moomoo.anarchyexploitfixes.caffeine") | ||
relocate("io.papermc.lib", "me.moomoo.anarchyexploitfixes.paperlib") | ||
relocate("de.tr7zw.changeme.nbtapi", "me.moomoo.anarchyexploitfixes.nbtapi") | ||
relocate("org.bstats", "me.moomoo.anarchyexploitfixes.bstats") | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
plugins { | ||
id("me.moomoo.anarchyexploitfixes.wrapper") | ||
id("com.github.johnrengelman.shadow") version "8.1.1" | ||
} | ||
|
||
dependencies { | ||
compileOnly("com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT") | ||
api("com.github.cryptomorin:XSeries:9.6.0") // XSeries for cross-version support | ||
api("com.github.ben-manes.caffeine:caffeine:2.9.3") // Fast caching // Use 2.x for Java8 compatibility | ||
} | ||
|
||
configure<JavaPluginExtension> { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> { | ||
archiveFileName = "${rootProject.name}-${project.name}-${project.version}.${archiveExtension.get()}" | ||
exclude( | ||
"LICENSE", | ||
"module-info.class", | ||
"META-INF/MANIFEST.MF", | ||
"META-INF/LICENSE", | ||
"META-INF/LICENSE.txt", | ||
"META-INF/NOTICE.txt", | ||
"com/cryptomorin/xseries/XBiome*", | ||
"com/cryptomorin/xseries/XEntity*", | ||
"com/cryptomorin/xseries/XPotion*", | ||
"com/cryptomorin/xseries/NMSExtras*", | ||
"com/cryptomorin/xseries/NoteBlockMusic*", | ||
"com/cryptomorin/xseries/SkullCacheListener*" | ||
) | ||
relocate("com.github.benmanes.caffeine", "me.moomoo.anarchyexploitfixes.caffeine") | ||
relocate("io.papermc.lib", "me.moomoo.anarchyexploitfixes.paperlib") | ||
relocate("de.tr7zw.changeme.nbtapi", "me.moomoo.anarchyexploitfixes.nbtapi") | ||
relocate("org.bstats", "me.moomoo.anarchyexploitfixes.bstats") | ||
relocate("com.cryptomorin.xseries", "me.moomoo.anarchyexploitfixes.xseries") | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
// Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build. | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
// Use the plugin portal to apply community plugins in convention plugins. | ||
gradlePluginPortal() | ||
} |
Oops, something went wrong.