2022-03-17 09:42:05 +01:00
|
|
|
/*
|
|
|
|
* Gradle build configuration for specific lab module / exercise
|
|
|
|
*/
|
|
|
|
// the Java plugin is added by default in the main lab configuration
|
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
// Apply the application plugin to add support for building a CLI application.
|
|
|
|
id 'application'
|
|
|
|
// Adding JavaFX support and dependencies
|
|
|
|
id 'org.openjfx.javafxplugin' version '0.0.12'
|
|
|
|
}
|
|
|
|
|
|
|
|
// Project/Module information
|
|
|
|
description = 'Lab02 FXML WordCloud'
|
|
|
|
group = 'ch.zhaw.prog2'
|
|
|
|
version = '2022.1'
|
|
|
|
|
|
|
|
// Dependency configuration
|
|
|
|
// repositories to download dependencies from
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
// required dependencies
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Configuration for Application plugin
|
|
|
|
application {
|
|
|
|
// Define the main class for the application.
|
2022-03-17 20:59:16 +01:00
|
|
|
mainClass = 'ch.zhaw.prog2.application.App'
|
2022-03-17 09:42:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Configuration for JavaFX plugin
|
|
|
|
javafx {
|
|
|
|
version = '17'
|
|
|
|
modules = [ 'javafx.controls', 'javafx.fxml' ]
|
|
|
|
}
|
|
|
|
|
|
|
|
// Java plugin configuration
|
|
|
|
java {
|
|
|
|
// By default the Java version of the gradle process is used as source/target version.
|
|
|
|
// This can be overridden, to ensure a specific version. Enable only if required.
|
|
|
|
// sourceCompatibility = JavaVersion.VERSION_17 // ensure Java source code compatibility
|
|
|
|
// targetCompatibility = JavaVersion.VERSION_17 // version of the created byte-code
|
|
|
|
|
|
|
|
// Java compiler specific options
|
|
|
|
compileJava {
|
|
|
|
// source files should be UTF-8 encoded
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
// for more options see https://docs.gradle.org/current/dsl/org.gradle.api.tasks.compile.CompileOptions.html
|
|
|
|
}
|
|
|
|
}
|