File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import xyz.wagyourtail.jvmdg.gradle.task.DowngradeJar
33plugins {
44 id(" java" )
55 id(" xyz.wagyourtail.jvmdowngrader" ) version " 1.3.5" apply false
6+ id(" com.gradleup.shadow" ) version " 9.3.1" apply false
67}
78
89val downgradedVersions = mapOf<String , Set <Int >>(
@@ -19,7 +20,13 @@ val defaultJavaVersion = 21
1920subprojects {
2021 apply (plugin = " java" )
2122 apply (plugin = " java-library" )
22- apply (plugin = " maven-publish" )
23+
24+ val examplePlugin = project.name.equals(" example-plugin" )
25+ if (examplePlugin) {
26+ apply (plugin = " com.gradleup.shadow" )
27+ } else {
28+ apply (plugin = " maven-publish" )
29+ }
2330
2431 if (downgradedVersions.containsKey(project.name)) {
2532 apply (plugin = " xyz.wagyourtail.jvmdowngrader" )
@@ -126,6 +133,7 @@ subprojects {
126133 }
127134
128135 afterEvaluate {
136+ if (examplePlugin) return @afterEvaluate
129137 extensions.configure<PublishingExtension > {
130138 publications.create<MavenPublication >(" maven" ) {
131139 artifactId = project.name
Original file line number Diff line number Diff line change 1- plugins {
2- id(" com.gradleup.shadow" ) version " 9.3.1"
3- }
4-
51repositories {
62 maven(" https://repo.papermc.io/repository/maven-public/" )
73}
Original file line number Diff line number Diff line change 1- plugins {
2- id(" com.gradleup.shadow" ) version " 9.3.1"
3- }
4-
51val libsDir: Directory = project(" :hytale" ).layout.projectDirectory.dir(" libs" )
62val hytaleServerJar: RegularFile = libsDir.file(" HytaleServer.jar" )
73
You can’t perform that action at this time.
0 commit comments