| | id 'org.openjfx.javafxplugin' version '0.1.0' |
| | id 'com.palantir.git-version' version '3.0.0' |
| | - id "com.github.spotbugs" version "5.2.4" |
| | + id 'com.github.spotbugs' version '5.2.4' |
| | } |
| | |
 |
| | |
| | maven { |
| | - url "https://css4j.github.io/maven" |
| | + url 'https://css4j.github.io/maven' |
| | mavenContent { |
| | releasesOnly() |
 |
| | if (project.hasProperty( 'targetOs' )) { |
| | if ('windows' == targetOs) { |
| | - os = ["win"] |
| | + os = ['win'] |
| | } else if ('macos' == targetOs) { |
| | - os = ["mac"] |
| | + os = ['mac'] |
| | } else { |
| | os = [targetOs] |
 |
| | } |
| | |
| | - testImplementation 'org.testfx:testfx-junit5:4.0.17' |
| | testImplementation "org.junit.jupiter:junit-jupiter-api:${v_junit}" |
| | testImplementation "org.junit.jupiter:junit-jupiter-params:${v_junit}" |
| | + testImplementation 'org.testfx:testfx-junit5:4.0.17' |
| | testImplementation 'org.assertj:assertj-core:3.24.2' |
| | testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' |
 |
| | compileJava { |
| | options.compilerArgs += [ |
| | - "-Xlint:unchecked", |
| | - "-Xlint:deprecation", |
| | + '-Xlint:unchecked', |
| | + '-Xlint:deprecation', |
| | "-Aproject=${applicationPackage}/${applicationName}" |
| | ] |
 |
| | |
| | from { |
| | - (configurations.runtimeClasspath.findAll { !it.path.endsWith( ".pom" ) }) |
| | + (configurations.runtimeClasspath.findAll { !it.path.endsWith( '.pom' ) }) |
| | .collect { it.isDirectory() ? it : zipTree( it ) } |
| | } |
 |
| | |
| | tasks.withType( JavaCompile ).configureEach { |
| | - options.compilerArgs += "--enable-preview" |
| | + options.encoding = 'UTF-8' |
| | + options.compilerArgs += '--enable-preview' |
| | } |
| | |
| | tasks.withType( JavaExec ).configureEach { |
| | - jvmArgs += "--enable-preview" |
| | + jvmArgs += '--enable-preview' |
| | } |
| | |
| | tasks.withType( Test ).configureEach { |
| | - jvmArgs += "--enable-preview" |
| | + jvmArgs += '--enable-preview' |
| | } |
| | |