45 lines
816 B
Groovy
45 lines
816 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'org.openjfx.javafxplugin' version '0.0.10'
|
|
}
|
|
|
|
group 'com.example'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
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}")
|
|
implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
} |