43 lines
742 B
Groovy
43 lines
742 B
Groovy
|
plugins {
|
||
|
id 'java'
|
||
|
id 'application'
|
||
|
id 'org.openjfx.javafxplugin' version '0.0.10'
|
||
|
}
|
||
|
|
||
|
group 'com.example'
|
||
|
version '1.0-SNAPSHOT'
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
ext {
|
||
|
junitVersion = '5.7.1'
|
||
|
}
|
||
|
|
||
|
sourceCompatibility = '15'
|
||
|
targetCompatibility = '15'
|
||
|
|
||
|
tasks.withType(JavaCompile) {
|
||
|
options.encoding = 'UTF-8'
|
||
|
}
|
||
|
|
||
|
application {
|
||
|
mainModule = 'com.example.happy_bird'
|
||
|
mainClass = 'com.example.happy_bird.HelloApplication'
|
||
|
}
|
||
|
|
||
|
javafx {
|
||
|
version = '15.0.1'
|
||
|
modules = ['javafx.controls', 'javafx.fxml']
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
|
||
|
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
|
||
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
|
||
|
}
|
||
|
|
||
|
test {
|
||
|
useJUnitPlatform()
|
||
|
}
|