generated from se-buw/java-gradle-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (44 loc) · 1.31 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
id 'org.openjfx.javafxplugin' version '0.1.0'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
// This dependency is used by the application.
implementation 'com.google.guava:guava:30.1.1-jre'
// working with CSV files
// https://github.com/eugenp/tutorials/tree/master/libraries-apache-commons-io
// https://mvnrepository.com/artifact/org.apache.commons/commons-csv
implementation 'org.apache.commons:commons-csv:1.10.0'
// working with SQL databases
// https://mvnrepository.com/artifact/com.h2database/h2
implementation 'com.h2database:h2:2.2.224'
}
application {
// Define the main class for the application.
mainClass = 'de.buw.se.AppGUI'
// mainClass = 'de.buw.se.AppCLI'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
javafx {
version = "21.0.1"
modules = [ 'javafx.controls' ]
}
java {
sourceCompatibility = JavaVersion.VERSION_15
}
run {
standardInput = System.in
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}