Skip to content

Commit

Permalink
Adds a shadow jar for the CLI and makes it fully executable (#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.
  • Loading branch information
shartte authored Dec 19, 2023
1 parent a53a171 commit a94d5f0
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 @@ -25,10 +25,11 @@ allprojects {
implementation 'org.ow2.asm:asm-util:9.6'

// 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 a94d5f0

Please sign in to comment.