forbidden-apis: JDK version determined incorrectly by Gradle on JDK 10

https://github.com/policeman-tools/forbidden-apis/wiki/BundledSignatures “Gradle automatically add the compile Java version”

forbiddenApis {
  bundledSignatures = ['jdk-internal']
}

Error: Parsing signatures failed: Invalid bundled signature reference (JDK version is invalid): jdk-internal-1.10

Workaround:

forbiddenApis {
  bundledSignatures = ['jdk-internal-10']
}

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (12 by maintainers)

Most upvoted comments

I will release a new version anyways for compatibility with Java 11, so this fix should be out soon.