Skip to content

Commit

Permalink
Add forbidden-apis check to prevent accidental use of locale-dependen…
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Feb 10, 2023
1 parent 4fc3cf7 commit 2a294b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("gradlexbuild.build-parameters")
id("gradlexbuild.documentation-conventions")
id("org.gradlex.internal.plugin-publish-conventions") version "0.5"
id("de.thetaphi.forbiddenapis") version "3.4"
}

group = "org.gradlex"
Expand Down Expand Up @@ -50,3 +51,7 @@ tasks.publishPlugins {
dependsOn(tasks.check)
}

forbiddenApis {
// See https://github.com/policeman-tools/forbidden-apis/wiki/BundledSignatures
bundledSignatures.add("jdk-unsafe")
}

0 comments on commit 2a294b9

Please sign in to comment.