mirror of
https://github.com/pcvolkmer/mv64e-onkostar-plugin-export.git
synced 2025-09-13 13:12:52 +00:00
build: include dependencies with Shadow Gradle Plugin
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id("com.gradleup.shadow") version "8.3.8"
|
||||
}
|
||||
|
||||
group = 'dev.pcvolkmer.onco'
|
||||
@@ -64,3 +65,13 @@ dependencies {
|
||||
tasks.named('test') {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
// Include dependencies in resulting JAR file
|
||||
tasks.shadowJar {
|
||||
minimize()
|
||||
dependencies {
|
||||
exclude("de/itc/onkostar/api/**")
|
||||
include(dependency("dev.pcvolkmer.onco:mv64e-onkostar-data"))
|
||||
include(dependency("dev.pcvolkmer.mv64e:mtb-dto"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user