From d43f226f2d6b30b136db19a7ce04be0a2de8c64c Mon Sep 17 00:00:00 2001 From: dfsek Date: Sat, 17 Jul 2021 13:25:24 -0700 Subject: [PATCH] create tree generation stage addon --- .../generation-stage-tree/build.gradle.kts | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 common/addons/generation-stage-tree/build.gradle.kts diff --git a/common/addons/generation-stage-tree/build.gradle.kts b/common/addons/generation-stage-tree/build.gradle.kts new file mode 100644 index 000000000..07542d899 --- /dev/null +++ b/common/addons/generation-stage-tree/build.gradle.kts @@ -0,0 +1,45 @@ +import com.dfsek.terra.configureCompilation +import com.dfsek.terra.configureDependencies + +plugins { + `java-library` + `maven-publish` + idea +} + +configureCompilation() +configureDependencies() + +group = "com.dfsek.terra.common" + +dependencies { + "shadedApi"(project(":common:api")) + "compileOnly"("com.google.guava:guava:30.0-jre") + + "testImplementation"("com.google.guava:guava:30.0-jre") +} + +publishing { + publications { + create("mavenJava") { + artifact(tasks["sourcesJar"]) + artifact(tasks["jar"]) + } + } + + repositories { + val mavenUrl = "https://repo.codemc.io/repository/maven-releases/" + val mavenSnapshotUrl = "https://repo.codemc.io/repository/maven-snapshots/" + + maven(mavenUrl) { + val mavenUsername: String? by project + val mavenPassword: String? by project + if (mavenUsername != null && mavenPassword != null) { + credentials { + username = mavenUsername + password = mavenPassword + } + } + } + } +} \ No newline at end of file