Commit 53323b69 authored by Sebastian Kaspari's avatar Sebastian Kaspari
Browse files

Closes #2346: Remove now unused KotlinCompiler class.

parent 1acebe1b
......@@ -45,11 +45,9 @@ subprojects {
apply plugin: 'jacoco'
apply plugin: 'org.jetbrains.dokka-android'
// Enable Kotlin warnings as errors. We should work to enable this on all modules (#2346).
if (!KotlinCompiler.projectsWithWarningsAsErrorsDisabled.contains(project.name)) {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.allWarningsAsErrors = true
}
// Enable Kotlin warnings as errors for all modules
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.allWarningsAsErrors = true
}
// Enforce that all (transitive) dependencies are using the same support library version as we do.
......
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* A collection of functions and properties to interact with the Kotlin compiler.
*/
object KotlinCompiler {
// Ideally, this would be a function to enable warningsAsErrors. However, it's hard to make the
// KotlinCompile task dependencies available to buildSrc so we settle for defining this list here instead.
// Maybe this is easier in Gradle 5+.
@JvmStatic
val projectsWithWarningsAsErrorsDisabled = setOf()
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment