fix: trying to fix ci
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
d63735e8d4
commit
2d13729405
1 changed files with 16 additions and 2 deletions
|
@ -83,16 +83,30 @@ tasks {
|
||||||
}
|
}
|
||||||
// To add all of the dependencies
|
// To add all of the dependencies
|
||||||
from(sourceSets.main.get().output)
|
from(sourceSets.main.get().output)
|
||||||
/*
|
|
||||||
dependsOn(configurations.runtimeClasspath)
|
dependsOn(configurations.runtimeClasspath)
|
||||||
from({
|
from({
|
||||||
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
||||||
})
|
})
|
||||||
*/
|
|
||||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
dependsOn("generateTemplates", "processResources")
|
dependsOn("generateTemplates", "processResources")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
withType<JavaCompile> {
|
||||||
|
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||||
|
// this fixes some edge cases with special characters not displaying correctly
|
||||||
|
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
||||||
|
// If Javadoc is generated, this must be specified in that task too.
|
||||||
|
options.encoding = "UTF-8"
|
||||||
|
/*
|
||||||
|
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible) {
|
||||||
|
options.release.set(targetJavaVersion)
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
dependsOn("generateTemplates", "processResources")
|
||||||
|
}
|
||||||
|
|
||||||
withType<KotlinCompile> {
|
withType<KotlinCompile> {
|
||||||
kotlinOptions.jvmTarget = targetJavaVersion.toString()
|
kotlinOptions.jvmTarget = targetJavaVersion.toString()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue