Skip to content

Commit

Permalink
Adds a shadow jar for the CLI and makes it fully executable (FabricMC#23
Browse files Browse the repository at this point in the history
)

* Adds a shadow jar for the CLI and makes it fully executable.

* Used fixed JUnit version (via BOM)
Remove java plugin + build shadow jar alongside normal build.

(cherry picked from commit a94d5f0)
  • Loading branch information
shartte authored and OroArmor committed Apr 19, 2024
1 parent 97123a0 commit 3b172fe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ allprojects {
implementation libs.log4j.core

// Use JUnit test framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.+'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.+'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.+'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.10.+'
testImplementation platform('org.junit:junit-bom:5.10.1')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
Expand Down
16 changes: 15 additions & 1 deletion unpick-cli/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

dependencies {
implementation project(':')
implementation project(':unpick-format-utils')
}
}

jar {
manifest {
attributes 'Main-Class': 'daomephsta.unpick.cli.Main'
}
}

assemble.configure {
dependsOn shadowJar
}

0 comments on commit 3b172fe

Please sign in to comment.