51 lines
868 B
Groovy
51 lines
868 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
}
|
|
|
|
group 'fr.amu.puit'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
mainClassName = 'fr.packageviewer.Main'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_15
|
|
targetCompatibility = JavaVersion.VERSION_15
|
|
}
|
|
|
|
jar{
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': mainClassName
|
|
)
|
|
}
|
|
|
|
from {
|
|
configurations.bundle.filter{
|
|
it.exists()
|
|
}.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
configurations {
|
|
bundle
|
|
implementation.extendsFrom(bundle)
|
|
}
|
|
|
|
dependencies {
|
|
bundle 'org.json:json:20220924'
|
|
bundle 'com.beust:jcommander:1.78'
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|