HHH-12990 Remove now unnecessary dependencies to JSR-250 when using jpamodelgen
The previous commit ensured we don't need them anymore.
This commit is contained in:
parent
e436b316da
commit
165cc74fb5
|
@ -107,20 +107,6 @@ dependencies {
|
|||
testRuntime( libraries.hana )
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Java 9 ftw!
|
||||
if ( JavaVersion.current().isJava9Compatible() ) {
|
||||
// In order for code generated by jpamodelgen to be compiled successfully,
|
||||
// we need the @javax.annotation.Generated annotation to be in the classpath,
|
||||
// and it's no longer in the JDK starting with JDK9
|
||||
// (though @javax.annotation.processing.Generated is available in JDK9).
|
||||
// Thus we need an additional dependency.
|
||||
// See also https://hibernate.atlassian.net/browse/HHH-12990
|
||||
compile( libraries.jsr250_api )
|
||||
testCompile( libraries.jsr250_api )
|
||||
}
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Mac-specific
|
||||
project.ext.toolsJar = file("${System.getProperty('java.home')}/../lib/tools.jar")
|
||||
if ( project.toolsJar.exists() ) {
|
||||
|
|
Loading…
Reference in New Issue