DEV Community

Query Filter
Query Filter

Posted on

docker122

// Put this at the very bottom of your build.gradle
tasks.withType(GenerateMavenPom).configureEach {
    if (name.contains("MyPlatform")) {
        suppressedValidationErrors.add('enforced-platform')
    }
}

tasks.withType(GenerateModuleMetadata).configureEach {
    if (name.contains("MyPlatform")) {
        suppressedValidationErrors.add('enforced-platform')
    }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)