Gradle cleanup
This commit is contained in:
parent
f347e682d0
commit
a75c564920
@ -3,11 +3,15 @@ import org.gradle.internal.impldep.org.apache.http.client.methods.RequestBuilder
|
|||||||
import org.jetbrains.kotlin.gradle.dsl.Coroutines
|
import org.jetbrains.kotlin.gradle.dsl.Coroutines
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
||||||
import org.jetbrains.kotlin.gradle.plugin.android.AndroidGradleWrapper.srcDir
|
import org.jetbrains.kotlin.gradle.plugin.android.AndroidGradleWrapper.srcDir
|
||||||
|
import java.io.File
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
maven
|
maven
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
|
|
||||||
|
// the version is defined in the parent project. Uncomment this if you are working DIRECTLY with Utilities
|
||||||
|
// kotlin("jvm") version "1.2.40"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply {
|
apply {
|
||||||
@ -84,10 +88,15 @@ dependencies {
|
|||||||
testCompile(group = "junit", name = "junit", version = "4.12")
|
testCompile(group = "junit", name = "junit", version = "4.12")
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup compile options. we specifically want to suppress usage of "Unsafe"
|
tasks.withType<JavaCompile> {
|
||||||
val compileJava: JavaCompile by tasks
|
println("Configuring $name in project ${project.name}...")
|
||||||
compileJava.options.isIncremental = true
|
options.encoding = "UTF-8"
|
||||||
compileJava.options.isFork = true
|
options.isIncremental = true
|
||||||
compileJava.options.forkOptions.executable = "javac"
|
options.isFork = true
|
||||||
compileJava.options.compilerArgs = listOf("-XDignore.symbol.file",
|
options.forkOptions.executable = "javac"
|
||||||
"-Xlint:deprecation")
|
|
||||||
|
// setup compile options. we specifically want to suppress usage of "Unsafe"
|
||||||
|
options.compilerArgs = listOf("-XDignore.symbol.file", "-Xlint:deprecation")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user