PackageViewer/build.gradle
Marla 3f76bb8bc5
Merge pull request #14 from ThomasRubini/main_app
Added a parser to get the distribution the user want
2022-12-12 23:16:13 +01:00

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()
}