Skip to content

Compiler Warnings as Errors - All Modules - Enable All Warnings As Errors Flag #17182

@ParaskP7

Description

@ParaskP7

Parent #17173

This issue is about enabling the the allWarningsAsErrors flag so that all new compile warnings are treated as errors from now on.

To do so, you can just add the below configuration to the root level build.gradle file:

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

...

allprojects {
    ....

    tasks.withType(KotlinCompile).all {
        kotlinOptions {
            allWarningsAsErrors = true
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions