Build file code cleanup

master
Robinson 2021-01-28 23:38:59 +01:00
parent f6de8a1609
commit 713d05eeaf
1 changed files with 0 additions and 29 deletions

View File

@ -58,12 +58,6 @@ GradleUtils.fixIntellijPaths()
GradleUtils.defaultResolutionStrategy()
GradleUtils.compileConfiguration(JavaVersion.VERSION_1_8)
//var paths = System.getProperty("org.gradle.java.installations.paths", "")
//paths += ",/custom/path/jdk1.8,/shared/jre11"
//System.setProperty("org.gradle.java.installations.paths", paths)
//println(paths)
licensing {
license(License.APACHE_2) {
description(Extras.description)
@ -120,8 +114,6 @@ dependencies {
if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
// Paths for the various executables in the Java 'bin' directory
val javaHome = "D:/Code/extras/jdk1.8.0_181-oracle"
// val javaCompilerPath = "$javaHome/bin/javac.exe"
// val javaExecutablePath = "$javaHome/bin/java.exe"
val javaFxFile = File("$javaHome/jre/lib/ext/jfxrt.jar")
println("\tJavaFX: $javaFxFile")
@ -148,27 +140,6 @@ dependencies {
}
//tasks.named<JavaCompile>("compileJava") {
// sourceCompatibility = "8"
// targetCompatibility = "8"
//
// // The sourceCompatibility and targetCompatibility properties have been removed
// options.encoding = "UTF-8"
// options.isFork = true
// options.forkOptions.executable = javaCompilerPath
// options.forkOptions.javaHome = file(javaHome)
//
// targetCompatibility = "1.8"
// sourceCompatibility = "1.8"
//}
//
//
//tasks.named<JavaCompile>("compileMain_Java11Java") {
// sourceCompatibility = "11"
// targetCompatibility = "11"
//}
publishToSonatype {
groupId = Extras.group
artifactId = Extras.id