diff --git a/build.gradle b/build.gradle index 5217f11..61497f6 100644 --- a/build.gradle +++ b/build.gradle @@ -62,7 +62,7 @@ subprojects { clean { dependsOn(":api:clean") dependsOn(":server:clean") - //dependsOn(":proxy:clean") + dependsOn(":proxy:clean") } task copyJars(type: Copy, dependsOn: subprojects.jar) { diff --git a/proxy/build.gradle.kts b/proxy/build.gradle.kts new file mode 100644 index 0000000..0b36189 --- /dev/null +++ b/proxy/build.gradle.kts @@ -0,0 +1,48 @@ +import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar + +group = rootProject.group +version = rootProject.version +description = "Plex-API" + +repositories { + maven { url = uri("https://papermc.io/repo/repository/maven-public/") } +} + +tasks.getByName("jar") { + archiveBaseName.set("Plex") + archiveClassifier.set("proxy") + val props = mapOf("version" to rootProject.version) +// filter("tokens" to props) +} + +tasks.getByName("shadowJar") { + val props = mapOf("version" to rootProject.version) +// filter("tokens" to props) +} + +tasks { + jar { + finalizedBy(rootProject.tasks["copyJars"]) + } + + shadowJar { + enabled = false + } +} + +publishing { + publications { + create("maven") { + from(components["java"]) + } + } +} + +dependencies { + compileOnly("org.projectlombok:lombok:1.18.24") + annotationProcessor("org.projectlombok:lombok:1.18.24") + compileOnly("org.json:json:20220320") + compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT") + annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT") + implementation(project(":api")) +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index ef8698e..fc4a023 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,5 +7,5 @@ pluginManagement { rootProject.name = "Plex" include 'api' include 'server' -//include 'proxy' +include 'proxy'