feat: some gradle things

This commit is contained in:
TheClashFruit 2023-09-30 16:07:32 +02:00
parent a7f3038261
commit d4f7aae532
Signed by: TheClashFruit
GPG key ID: CF4A319B9A73290C
3 changed files with 26 additions and 4 deletions

View file

@ -4,7 +4,7 @@ plugins {
}
group = 'me.theclashfruit'
version = '0.2.0+mc1.1-alpha'
version = project.plugin_version
repositories {
mavenCentral()
@ -14,7 +14,7 @@ dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation files('/home/tcf/MinecraftDev/craftbukkit-1.1-R5-SNAPSHOT.jar')
shadow files('/home/tcf/MinecraftDev/craftbukkit-1.1-R5-SNAPSHOT.jar')
implementation 'org.eclipse.jetty:jetty-server:9.4.52.v20230823'
implementation 'org.eclipse.jetty:jetty-servlet:9.4.52.v20230823'
@ -27,10 +27,30 @@ dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
}
processResources {
inputs.property "version", project.version
inputs.property "bukkit_version", project.bukkit_version
filteringCharset "UTF-8"
filesMatching("plugin.yml") {
expand "version": project.version,
"bukkit_version": project.bukkit_version
}
}
shadowJar {
archiveBaseName.set('crss')
archiveBaseName.set(rootProject.name)
archiveClassifier.set('')
archiveVersion.set(project.version)
}
tasks.jar.enabled = false
tasks.build {
dependsOn tasks.processResources
dependsOn tasks.shadowJar
}
test {

2
gradle.properties Normal file
View file

@ -0,0 +1,2 @@
bukkit_version = 1.1-R5-SNAPSHOT
plugin_version = 0.3.0+mc1.1-alpha

View file

@ -1,3 +1,3 @@
name: CRSS
main: me.theclashfruit.crss.Plugin
version: 0.1.0+mc1.1-alpha
version: ${version}