76 lines
1.2 KiB
Groovy
76 lines
1.2 KiB
Groovy
plugins {
|
|
id 'base'
|
|
id 'java'
|
|
id 'application'
|
|
id 'distribution'
|
|
id 'org.openjfx.javafxplugin' version '0.0.7'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs = ['src']
|
|
}
|
|
test {
|
|
java.srcDirs = ['test']
|
|
}
|
|
}
|
|
|
|
mainClassName = 'com.aps.spells.main.Launcher'
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
application {
|
|
mainClassName = mainClassName
|
|
}
|
|
|
|
distributions {
|
|
main {
|
|
mainClassName = mainClassName
|
|
}
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': "$mainClassName"
|
|
)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
maven {
|
|
url "https://plugins.gradle.org/m2/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile (
|
|
'log4j:log4j:1.2.17',
|
|
'org.apfloat:apfloat:1.9.0',
|
|
'io.reactivex.rxjava2:rxjava:2.2.2',
|
|
'io.reactivex.rxjava2:rxjavafx:2.2.2',
|
|
'org.slf4j:slf4j-api:1.7.25',
|
|
'org.slf4j:slf4j-jdk14:1.7.25',
|
|
'org.apache.commons:commons-lang3:3.8',
|
|
)
|
|
testCompile(
|
|
'org.hamcrest:hamcrest-all:1.3',
|
|
'org.junit.jupiter:junit-jupiter-engine:5.1.0',
|
|
'org.testfx:testfx-core:4.0.14-alpha',
|
|
'org.junit.jupiter:junit-jupiter-api:5.3.1',
|
|
'org.testfx:testfx-junit5:4.0.14-alpha',
|
|
'org.mockito:mockito-core:2.22.0'
|
|
)
|
|
}
|
|
|
|
javafx {
|
|
version = '11.0.2'
|
|
modules = [ 'javafx.controls', 'javafx.fxml' ]
|
|
}
|
|
|
|
group = 'spell-idle'
|
|
version = '0.0.1'
|
|
sourceCompatibility = '1.11' |