diff --git a/tooling/metamodel-generator/build.gradle b/tooling/metamodel-generator/build.gradle index 31b742ee36..c0084473f8 100644 --- a/tooling/metamodel-generator/build.gradle +++ b/tooling/metamodel-generator/build.gradle @@ -5,6 +5,7 @@ apply plugin: 'maven-publish' apply plugin: 'maven-publish-auth' apply plugin: 'jdocbook' apply plugin: 'checkstyle' +apply plugin: 'distribution' task wrapper(type: Wrapper) { gradleVersion = '1.7' @@ -169,8 +170,7 @@ checkstyleMain.exclude '**/jaxb/**' //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Javadocs //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -final File documentationDir = mkdir( new File( project.buildDir, 'documentation' ) ); -final File javadocDir = mkdir( new File( documentationDir, 'javadocs' ) ); +final File javadocDir = mkdir( new File( project.buildDir, 'javadocs/api' ) ); final int copyrightYear = new GregorianCalendar().get( Calendar.YEAR ); task javadocs(type: Javadoc) { source = sourceSets.main.allJava @@ -318,7 +318,68 @@ artifacts { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Release //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - +distributions { + main { + baseName = 'hibernate-jpamodelgen-dist' + contents { + from rootProject.file( 'README.md' ) + from rootProject.file( 'license.txt' ) + from rootProject.file( 'changelog.txt' ) + + into('lib') { + configurations.archives.allArtifacts + } + + // javadocs + into('docs/api') { + from javadocDir + } + + // docbook + into('docs/reference') { + from "${buildDir}/docbook/publish/manual/en-US" + } + + into( 'project' ) { + from ( rootProject.projectDir ) { + exclude( '.git' ) + exclude( '.gitignore' ) + exclude( 'README.md') + exclude( 'changelog.txt' ) + exclude( 'license.txt' ) + exclude( 'gradle' ) + exclude( 'gradlew' ) + exclude( 'gradlew.bat' ) + exclude( 'wrapper/*' ) + exclude( '**/.gradle/**' ) + exclude( '**/target/**' ) + exclude( '.idea' ) + exclude( '**/*.ipr' ) + exclude( '**/*.iml' ) + exclude( '**/*.iws' ) + exclude( '**/atlassian-ide-plugin.xml' ) + exclude( '**/.classpath' ) + exclude( '**/.project' ) + exclude( '**/.settings' ) + } + } + } + } +} + +distZip.dependsOn build,javadocs,buildDocs +distTar.dependsOn build,javadocs,buildDocs +distTar { + compression = Compression.GZIP +} + +task buildBundles(type: Task, dependsOn: [distZip,distTar]) { + description = "Builds all release bundles" +} + +task release(dependsOn: [publish,buildBundles]) { + description = "Execute all release tasks" +} diff --git a/tooling/metamodel-generator/pom.xml b/tooling/metamodel-generator/pom.xml deleted file mode 100644 index 6ce6bf5345..0000000000 --- a/tooling/metamodel-generator/pom.xml +++ /dev/null @@ -1,395 +0,0 @@ - - - 4.0.0 - - org.hibernate - hibernate-jpamodelgen - 1.4.0-SNAPSHOT - - Hibernate JPA 2 Metamodel Generator - Annotation Processor to generate JPA 2 static metamodel classes - http://www.hibernate.org/subprojects/jpamodelgen.html - - 2009 - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - - - - - JIRA - http://opensource.atlassian.com/projects/hibernate/browse/METAGEN - - - - scm:git:git://github.com/hibernate/hibernate-metamodelgen.git - scm:git:git@github.com:hibernate/hibernate-metamodelgen.git - http://github.com/hibernate/hibernate-metamodelgen - HEAD - - - - - jboss-releases-repository - JBoss Releases Repository - https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/ - - - jboss-snapshots-repository - JBoss Snapshots Repository - https://repository.jboss.org/nexus/content/repositories/snapshots/ - - - - - - epbernard - Emmanuel Bernard - emmanuel@hibernate.org - http://in.relation.to/Bloggers/Emmanuel - - - hardy.ferentschik - Hardy Ferentschik - hferents@redhat.com - JBoss, a division of Red Hat - http://in.relation.to/Bloggers/Hardy - - - max.andersen@jboss.com - Max Andersen - max.andersen@redhat.com - http://in.relation.to/Bloggers/Max - - - - - UTF-8 - UTF-8 - - - - - org.testng - testng - 6.8.5 - test - - - org.hibernate.javax.persistence - hibernate-jpa-2.0-api - 1.0.1.Final - test - - - org.slf4j - slf4j-api - 1.7.5 - test - - - org.slf4j - slf4j-log4j12 - 1.7.5 - test - - - org.hibernate - hibernate-core - 4.2.3.Final - test - - - - - test - - - - src/main/resources - - - src/main/xsd - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 1.3.1 - - - enforce-java - - enforce - - - - - - - - [1.6,) - - - - - - org.jboss.maven.plugins - maven-injection-plugin - 1.0.2 - - - compile - - bytecode - - - - - - - ${project.version} - - - org.hibernate.jpamodelgen.Version - getVersionString - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.6 - 1.6 - -proc:none - - - - org.codehaus.mojo - jaxb2-maven-plugin - 1.5 - - - - xjc - - - - - orm_2_1.xsd,persistence_2_1.xsd - org.hibernate.jpamodelgen.xml.jaxb - ${basedir}/target/generated-sources - true - - - - javax.xml.bind - jaxb-api - 2.2.9 - - - com.sun.xml.bind - jaxb-impl - 2.2.7 - - - - - true - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.15 - - true - - - sourceBaseDir - ${basedir}/src/test/java - - - outBaseDir - ${basedir}/target/test-classes - - - - ${basedir}/src/test/suite/unit-tests.xml - - - - - org.apache.maven.plugins - maven-surefire-report-plugin - 2.15 - - - generate-test-report - test - - report-only - - - - - ${project.build.directory}/surefire-reports - test-report - - - - org.apache.maven.plugins - maven-jar-plugin - 2.4 - - - - ${java.version} (${java.vendor}) - ${project.name} - http://www.jboss.org/ - ${project.version} - JBoss by Red Hat, Inc. - http://www.jboss.org/ - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.4 - - - src/main/assembly/dist.xml - - - - - org.jboss.maven.plugins - maven-jdocbook-plugin - 2.3.8 - true - - - org.hibernate - hibernate-jdocbook-style - 2.0.1 - jdocbook-style - - - - master.xml - ${basedir}/src/main/docbook/manual - en-US - - ${basedir}/src/main/docbook/manual/en-US/images - - - - pdf - classpath:/xslt/org/hibernate/jdocbook/xslt/pdf.xsl - hibernate-metamodel-generator-reference.pdf - - - html_single - classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl - - index.html - - - html - classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl - - index.html - - - - true - saxon - - - 1.72.0 - - - - - - - make-doc - site - - resources - generate - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 2.7 - - - org.apache.maven.plugins - maven-release-plugin - 2.4.1 - - true - true - @{project.version} - package deploy javadoc:javadoc org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:resources - org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate assembly:assembly - - - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.jboss.maven.plugins - maven-injection-plugin - [1.0.2,) - - bytecode - - - - - - - - - - - - - -