Skip to content

Commit

Permalink
allow DSL compilation warnings due to deprecated classes in fabric8
Browse files Browse the repository at this point in the history
  • Loading branch information
franckrasolo committed Feb 19, 2024
1 parent 12e3ba0 commit 81f4f55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DSLs/kubernetes/dsl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask

plugins {
kotlin("jvm")
`java-library`
Expand All @@ -23,6 +26,12 @@ val javadocJar by tasks.creating(Jar::class) {
dependsOn(tasks.named("javadoc"))
}

tasks.withType<KotlinCompilationTask<KotlinJvmCompilerOptions>>().configureEach {
compilerOptions {
allWarningsAsErrors.set(false)
}
}

tasks.named<Jar>("jar") {
manifest {
attributes(mapOf("version" to archiveVersion))
Expand Down

0 comments on commit 81f4f55

Please sign in to comment.