Port to ClassGraph (#30)

* Port to ClassGraph

* Migrate to Minecrell plugin-yml

This allows us to load libraries at runtime instead of using shading & creating massive JAR files.

* Fix constructor modifiers of cake command

* Fix improper usage of CommandMap
This commit is contained in:
allinkdev
2023-08-21 23:39:50 +01:00
committed by GitHub
parent bec93a9142
commit 18951fa120
13 changed files with 99 additions and 65 deletions

View File

@ -1,6 +1,7 @@
plugins {
id 'java'
id 'java-library'
id 'net.minecrell.plugin-yml.bukkit' version '0.6.0'
}
group 'me.totalfreedom'
@ -9,6 +10,7 @@ version '1.0.0'
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'net.minecrell.plugin-yml.bukkit'
repositories {
jcenter()
@ -30,6 +32,11 @@ subprojects {
}
}
bukkit {
apiVersion = "1.20"
author = "TotalFreedom"
}
dependencies {
compileOnly 'me.totalfreedom.scissors:Scissors-API:1.19.4-R0.1-SNAPSHOT'
compileOnly 'org.javassist:javassist:3.29.1-GA'
@ -37,7 +44,7 @@ subprojects {
compileOnly 'org.apache.commons:commons-collections4:4.2'
compileOnly 'com.google.guava:guava:31.1-jre'
compileOnly 'com.google.code.gson:gson:2.8.8'
compileOnly 'org.reflections:reflections:0.10.2'
compileOnly 'io.github.classgraph:classgraph:4.8.162'
compileOnly 'org.slf4j:slf4j-api:1.7.36'
}