From 0c6b6010069e87ed8c55e08c367f50e2d1e5bb56 Mon Sep 17 00:00:00 2001 From: Hardy Ferentschik Date: Tue, 22 Oct 2013 14:28:59 +0200 Subject: [PATCH] METAGEN-100 Exclude generated JAXB classes from JavaDocs --- tooling/metamodel-generator/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tooling/metamodel-generator/build.gradle b/tooling/metamodel-generator/build.gradle index ae2b4eaaac..fe77968424 100644 --- a/tooling/metamodel-generator/build.gradle +++ b/tooling/metamodel-generator/build.gradle @@ -167,6 +167,10 @@ final int copyrightYear = new GregorianCalendar().get( Calendar.YEAR ); task javadocs(type: Javadoc) { source = sourceSets.main.allJava destinationDir = javadocDir + excludes = ['org/hibernate/jpamodelgen/xml/jaxb/**'] + // need to update the javadic classpath and add the main compilation directory to avoid missing classes warnigns due to the + // above excludes + classpath = files( configurations.compile, "${buildDir}/classes/main" ) maxMemory = '512m' configure( options ) { stylesheetFile = rootProject.file( 'src/main/javadoc/stylesheet.css' )