43 lines
1.2 KiB
Groovy
43 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
|
}
|
|
|
|
group 'net.lwenstrom.jan'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 8
|
|
targetCompatibility = 8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/org.jfree/jfreechart
|
|
// https://mvnrepository.com/artifact/org.knowm.xchart/xchart
|
|
compile group: 'org.knowm.xchart', name: 'xchart', version: '3.2.2'
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
compileOnly 'org.projectlombok:lombok:1.18.10'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.10'
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
|
|
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-collections4
|
|
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
|
|
|
|
}
|
|
|
|
// Include dependent libraries in archive.
|
|
mainClassName = "example.GUIMain"
|
|
|
|
jar {
|
|
manifest {
|
|
attributes "Main-Class": "$mainClassName"
|
|
}
|
|
|
|
from {
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
}
|