restructure project to make it cleaner
This commit is contained in:
parent
4c594c1e9c
commit
19e4f6e88a
6 changed files with 32 additions and 33 deletions
29
build.gradle
29
build.gradle
|
@ -1,4 +1,20 @@
|
|||
subprojects {
|
||||
plugins {
|
||||
id "java"
|
||||
id "com.github.johnrengelman.shadow" version "8.1.1"
|
||||
id "xyz.jpenilla.run-paper" version "2.0.1"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(path: ":spigot", configuration: "shadow")
|
||||
implementation project(":api")
|
||||
implementation project(":folia")
|
||||
}
|
||||
|
||||
runServer {
|
||||
minecraftVersion "1.19.4"
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply plugin: "java"
|
||||
|
||||
group "lol.pyr"
|
||||
|
@ -19,5 +35,14 @@ subprojects {
|
|||
maven {
|
||||
url "https://repo.papermc.io/repository/maven-public/"
|
||||
}
|
||||
maven {
|
||||
url "https://repo.extendedclip.com/content/repositories/placeholderapi/"
|
||||
}
|
||||
maven {
|
||||
url "https://jitpack.io/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.assemble.dependsOn shadowJar
|
||||
tasks.compileJava.dependsOn clean
|
|
@ -1,3 +0,0 @@
|
|||
dependencies {
|
||||
compileOnly "org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT"
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
dependencies {
|
||||
compileOnly "dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT"
|
||||
compileOnly project(":common")
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
rootProject.name = "ZNPCsPlus"
|
||||
|
||||
include "api", "spigot", "folia", "common"
|
||||
include "api", "spigot", "folia"
|
|
@ -1,15 +1,5 @@
|
|||
plugins {
|
||||
id "com.github.johnrengelman.shadow" version "8.1.1"
|
||||
id "xyz.jpenilla.run-paper" version "2.0.1"
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url "https://repo.extendedclip.com/content/repositories/placeholderapi/"
|
||||
}
|
||||
maven {
|
||||
url "https://jitpack.io/"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -28,15 +18,14 @@ dependencies {
|
|||
implementation "com.github.retrooper.packetevents:spigot:2.0.0-SNAPSHOT"
|
||||
implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1"
|
||||
|
||||
implementation project(":api")
|
||||
implementation project(":common")
|
||||
implementation project(":folia")
|
||||
compileOnly project(":api")
|
||||
compileOnly project(":folia")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier.set ""
|
||||
relocate "org.bstats", "lol.pyr.znpcsplus.lib.bstats"
|
||||
relocate "org.apache.commons", "lol.pyr.znpcsplus.lib.commons"
|
||||
relocate "org.apache.commons.io", "lol.pyr.znpcsplus.lib.commonsio"
|
||||
relocate "me.robertlit.spigotresources", "lol.pyr.znpcsplus.lib.spigotresources"
|
||||
relocate "net.kyori", "lol.pyr.znpcsplus.lib.kyori"
|
||||
relocate "org.checkerframework", "lol.pyr.znpcsplus.lib.checkerframework"
|
||||
|
@ -49,15 +38,4 @@ shadowJar {
|
|||
relocate "org.yaml.snakeyaml", "lol.pyr.znpcsplus.lib.snakeyaml"
|
||||
relocate "space.arim.dazzleconf", "lol.pyr.znpcsplus.lib.dazzleconf"
|
||||
minimize()
|
||||
}
|
||||
|
||||
processResources {
|
||||
expand("version": version)
|
||||
}
|
||||
|
||||
runServer {
|
||||
minecraftVersion "1.19.4"
|
||||
}
|
||||
|
||||
tasks.assemble.dependsOn shadowJar
|
||||
tasks.compileJava.dependsOn clean
|
||||
}
|
Loading…
Reference in a new issue