Merge pull request #10 from ThomasRubini/gradle_bundle_deps

This commit is contained in:
Thomas Rubini 2022-12-12 22:37:37 +01:00 committed by GitHub
commit 300e749cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,14 +19,27 @@ jar{
'Main-Class': mainClassName
)
}
from {
configurations.bundle.filter{
it.exists()
}.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
repositories {
mavenCentral()
}
configurations {
bundle
implementation.extendsFrom(bundle)
}
dependencies {
implementation 'org.json:json:20220924'
bundle 'org.json:json:20220924'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}