HHH-8734 - Update to Gradle 1.9

This commit is contained in:
Steve Ebersole 2013-11-21 13:46:03 -06:00
parent d47e9daf88
commit 6f25adcfd2
4 changed files with 53 additions and 30 deletions

View File

@ -2,17 +2,19 @@ apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
apply from: "./libraries.gradle" apply from: "./libraries.gradle"
task wrapper(type: Wrapper) {
gradleVersion = '1.7'
}
allprojects { allprojects {
repositories { repositories {
mavenCentral() mavenCentral()
mavenLocal() mavenLocal()
mavenRepo name: 'jboss-nexus', url: "http://repository.jboss.org/nexus/content/groups/public/" maven {
mavenRepo name: "jboss-snapshots", url: "http://snapshots.jboss.org/maven2/" name 'jboss-nexus'
url "http://repository.jboss.org/nexus/content/groups/public/"
}
maven {
name "jboss-snapshots"
url "http://snapshots.jboss.org/maven2/"
}
} }
} }
@ -21,8 +23,14 @@ buildscript {
mavenCentral() mavenCentral()
mavenLocal() mavenLocal()
mavenRepo name: 'jboss-nexus', url: "http://repository.jboss.org/nexus/content/groups/public/" maven {
mavenRepo name: "jboss-snapshots", url: "http://snapshots.jboss.org/maven2/" name 'jboss-nexus'
url "http://repository.jboss.org/nexus/content/groups/public/"
}
maven {
name "jboss-snapshots"
url "http://snapshots.jboss.org/maven2/"
}
} }
dependencies { dependencies {
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1' classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
@ -31,8 +39,15 @@ buildscript {
} }
} }
ext.hibernateTargetVersion = '4.3.0-SNAPSHOT' ext {
ext.javaLanguageLevel = "1.6" expectedGradleVersion = '1.9'
hibernateTargetVersion = '4.3.0-SNAPSHOT'
javaLanguageLevel = '1.6'
// The OSGi manifest exported package versions need to be only the numerical release -- no "SNAPSHOT" or "Final"
// todo : brett - what about Alpha, Beta, CR, SP, etc?
osgiExportVersion = hibernateTargetVersion.replaceAll( "-SNAPSHOT", "" ).replaceAll( ".Final", "" );
}
idea { idea {
project { project {
@ -73,9 +88,7 @@ subprojects { subProject ->
group = 'org.hibernate' group = 'org.hibernate'
version = rootProject.hibernateTargetVersion version = rootProject.hibernateTargetVersion
// The OSGi manifest exported package versions need to be only the numerical release -- no "SNAPSHOT" or "Final" ext.exportPackageVersion = rootProject.osgiExportVersion
exportPackageVersion = version.replaceAll("-SNAPSHOT", "");
exportPackageVersion = exportPackageVersion.replaceAll(".Final", "");
// minimize changes, at least for now (gradle uses 'build' by default).. // minimize changes, at least for now (gradle uses 'build' by default)..
buildDir = "target" buildDir = "target"
@ -472,8 +485,10 @@ subprojects { subProject ->
} }
} }
} }
}
generatePomFileForMavenJavaPublication { model {
tasks.generatePomFileForMavenJavaPublication {
destination = file("$buildDir/generated-pom.xml") destination = file("$buildDir/generated-pom.xml")
} }
} }
@ -487,3 +502,7 @@ subprojects { subProject ->
} }
task release(type: Task, dependsOn: 'release:release') task release(type: Task, dependsOn: 'release:release')
task wrapper(type: Wrapper) {
gradleVersion = expectedGradleVersion
}

View File

@ -2,7 +2,10 @@ buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
mavenLocal() mavenLocal()
mavenRepo name: 'jboss-nexus', url: "http://repository.jboss.org/nexus/content/groups/public/" maven {
name 'jboss-nexus'
url "http://repository.jboss.org/nexus/content/groups/public/"
}
maven { maven {
name 'Bintray Asciidoctor repo' name 'Bintray Asciidoctor repo'
url 'http://dl.bintray.com/content/aalmiray/asciidoctor' url 'http://dl.bintray.com/content/aalmiray/asciidoctor'
@ -10,7 +13,8 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath "org.jboss.jdocbook:gradle-jdocbook:1.2.1" // classpath "org.jboss.jdocbook:gradle-jdocbook:1.2.1"
classpath "org.jboss.jdocbook:gradle-jdocbook:1.2.2-SNAPSHOT"
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0' classpath 'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0'
} }
} }

Binary file not shown.

View File

@ -1,6 +1,6 @@
#Fri Sep 06 10:53:39 CDT 2013 #Thu Nov 21 10:40:12 CST 2013
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.7-bin.zip distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-bin.zip