restructure project to make it cleaner
This commit is contained in:
parent
4c594c1e9c
commit
19e4f6e88a
6 changed files with 32 additions and 33 deletions
27
build.gradle
27
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"
|
apply plugin: "java"
|
||||||
|
|
||||||
group "lol.pyr"
|
group "lol.pyr"
|
||||||
|
@ -19,5 +35,14 @@ subprojects {
|
||||||
maven {
|
maven {
|
||||||
url "https://repo.papermc.io/repository/maven-public/"
|
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 {
|
dependencies {
|
||||||
compileOnly "dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT"
|
compileOnly "dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT"
|
||||||
compileOnly project(":common")
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
rootProject.name = "ZNPCsPlus"
|
rootProject.name = "ZNPCsPlus"
|
||||||
|
|
||||||
include "api", "spigot", "folia", "common"
|
include "api", "spigot", "folia"
|
|
@ -1,15 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id "com.github.johnrengelman.shadow" version "8.1.1"
|
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 {
|
dependencies {
|
||||||
|
@ -28,15 +18,14 @@ dependencies {
|
||||||
implementation "com.github.retrooper.packetevents:spigot:2.0.0-SNAPSHOT"
|
implementation "com.github.retrooper.packetevents:spigot:2.0.0-SNAPSHOT"
|
||||||
implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1"
|
implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1"
|
||||||
|
|
||||||
implementation project(":api")
|
compileOnly project(":api")
|
||||||
implementation project(":common")
|
compileOnly project(":folia")
|
||||||
implementation project(":folia")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
archiveClassifier.set ""
|
archiveClassifier.set ""
|
||||||
relocate "org.bstats", "lol.pyr.znpcsplus.lib.bstats"
|
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 "me.robertlit.spigotresources", "lol.pyr.znpcsplus.lib.spigotresources"
|
||||||
relocate "net.kyori", "lol.pyr.znpcsplus.lib.kyori"
|
relocate "net.kyori", "lol.pyr.znpcsplus.lib.kyori"
|
||||||
relocate "org.checkerframework", "lol.pyr.znpcsplus.lib.checkerframework"
|
relocate "org.checkerframework", "lol.pyr.znpcsplus.lib.checkerframework"
|
||||||
|
@ -50,14 +39,3 @@ shadowJar {
|
||||||
relocate "space.arim.dazzleconf", "lol.pyr.znpcsplus.lib.dazzleconf"
|
relocate "space.arim.dazzleconf", "lol.pyr.znpcsplus.lib.dazzleconf"
|
||||||
minimize()
|
minimize()
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
|
||||||
expand("version": version)
|
|
||||||
}
|
|
||||||
|
|
||||||
runServer {
|
|
||||||
minecraftVersion "1.19.4"
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.assemble.dependsOn shadowJar
|
|
||||||
tasks.compileJava.dependsOn clean
|
|
Loading…
Reference in a new issue