From 0f54fcc4840687a0b3c97e741a1d4cbfb404be5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 17 Oct 2018 08:49:56 +0200 Subject: [PATCH] HHH-12990 Remove now unnecessary dependencies to JSR-250 when using jpamodelgen The previous commit ensured we don't need them anymore. --- gradle/java-module.gradle | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gradle/java-module.gradle b/gradle/java-module.gradle index ddcbc8147c..3e20732070 100644 --- a/gradle/java-module.gradle +++ b/gradle/java-module.gradle @@ -108,20 +108,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() ) {