aboutsummaryrefslogtreecommitdiffstats
path: root/bukkit/build.gradle
diff options
context:
space:
mode:
authorKrakenied <Krakenied1@gmail.com>2023-03-07 15:27:13 +0100
committerKrakenied <Krakenied1@gmail.com>2023-03-07 15:27:13 +0100
commit939936696d4f1e2a7f618717d5014c488b184488 (patch)
tree954a3d30583ec613d77e6420ec46dc8e92048ae5 /bukkit/build.gradle
parent5a28efa93b1d8959593280f9f4346879a1eef508 (diff)
Replace fastutil Int2ObjectOpenHashMap with hppc IntObjectHashMap
Closes https://github.com/LMBishop/Quests/issues/497 without significant plugin JAR file size change
Diffstat (limited to 'bukkit/build.gradle')
-rw-r--r--bukkit/build.gradle30
1 files changed, 21 insertions, 9 deletions
diff --git a/bukkit/build.gradle b/bukkit/build.gradle
index da01e0dd..ef5c614e 100644
--- a/bukkit/build.gradle
+++ b/bukkit/build.gradle
@@ -48,19 +48,21 @@ repositories {
dependencies {
compileOnly project(':common')
// Paper
- compileOnly 'io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT'
+ compileOnly('io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT') {
+ exclude(group: 'it.unimi.dsi', module: 'fastutil') // exclude fastutil just to don't use it (for 1.8 support)
+ }
// ASkyBlock
- compileOnly ('com.wasteofplastic:askyblock:3.0.9.4') { transitive = false }
+ compileOnly('com.wasteofplastic:askyblock:3.0.9.4') { transitive = false }
// AuthLib
- compileOnly ('com.mojang:authlib:1.5.21') { transitive = false }
+ compileOnly('com.mojang:authlib:1.5.21') { transitive = false }
// BentoBox
- compileOnly ('world.bentobox:bentobox:1.22.0-SNAPSHOT') { transitive = false }
+ compileOnly('world.bentobox:bentobox:1.22.0-SNAPSHOT') { transitive = false }
// Citizens
- compileOnly ('net.citizensnpcs:citizensapi:2.0.30-SNAPSHOT') { transitive = false }
+ compileOnly('net.citizensnpcs:citizensapi:2.0.30-SNAPSHOT') { transitive = false }
// CoreProtect
compileOnly 'net.coreprotect:coreprotect:21.2'
// EssentialsX
- compileOnly ('net.essentialsx:EssentialsX:2.19.7') { transitive = false }
+ compileOnly('net.essentialsx:EssentialsX:2.19.7') { transitive = false }
// FabledSkyblock
compileOnly 'com.songoda:skyblock:2.3.30'
// IridiumSkyblock TODO fix whenever repo is up
@@ -82,15 +84,15 @@ dependencies {
// SCore
compileOnly 'com.github.Ssomar-Developement:SCore:3.4.7'
// ShopGUIPlus
- compileOnly ('com.github.brcdev-minecraft:shopgui-api:3.0.0') { transitive = false }
+ compileOnly('com.github.brcdev-minecraft:shopgui-api:3.0.0') { transitive = false }
// Slimefun4
compileOnly 'com.github.Slimefun:Slimefun4:RC-32'
// SuperiorSkyblock2
compileOnly 'com.bgsoftware:SuperiorSkyblockAPI:2022.9'
// uSkyBlock
- compileOnly ('com.github.rlf:uSkyBlock-API:2.8.3') { transitive = false }
+ compileOnly('com.github.rlf:uSkyBlock-API:2.8.3') { transitive = false }
// VotingPlugin
- compileOnly ('com.bencodez:votingplugin:6.9.5') { transitive = false }
+ compileOnly('com.bencodez:votingplugin:6.9.5') { transitive = false }
// IridiumSkyblock
compileOnly fileTree(dir: 'libs', includes: ['*.jar'])
@@ -101,6 +103,8 @@ dependencies {
implementation 'com.zaxxer:HikariCP:4.0.3'
// slf4j
implementation 'org.slf4j:slf4j-nop:1.7.36'
+ // hppc
+ implementation 'com.carrotsearch:hppc:0.9.1'
}
tasks.build {
@@ -111,5 +115,13 @@ shadowJar {
relocate 'org.bstats', 'com.leonardobishop.quests.libs.bstats'
relocate 'com.zaxxer.hikari', 'com.leonardobishop.quests.libs.hikaricp'
relocate 'org.slf4j', 'com.leonardobishop.quests.libs.slf4j'
+ relocate 'com.carrotsearch.hppc', 'com.leonardobishop.quests.libs.hppc'
+
+ minimize {
+ exclude(dependency('org.bstats:.*:.*'))
+ exclude(dependency('com.zaxxer:.*:.*'))
+ exclude(dependency('org.slf4j:.*:.*'))
+ }
+
archiveClassifier.set('')
}