HHH-8734 - Update to Gradle 1.9
This commit is contained in:
parent
d47e9daf88
commit
6f25adcfd2
47
build.gradle
47
build.gradle
|
@ -2,17 +2,19 @@ apply plugin: 'eclipse'
|
|||
apply plugin: 'idea'
|
||||
apply from: "./libraries.gradle"
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '1.7'
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
|
||||
mavenRepo name: 'jboss-nexus', url: "http://repository.jboss.org/nexus/content/groups/public/"
|
||||
mavenRepo name: "jboss-snapshots", url: "http://snapshots.jboss.org/maven2/"
|
||||
maven {
|
||||
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()
|
||||
mavenLocal()
|
||||
|
||||
mavenRepo name: 'jboss-nexus', url: "http://repository.jboss.org/nexus/content/groups/public/"
|
||||
mavenRepo name: "jboss-snapshots", url: "http://snapshots.jboss.org/maven2/"
|
||||
maven {
|
||||
name 'jboss-nexus'
|
||||
url "http://repository.jboss.org/nexus/content/groups/public/"
|
||||
}
|
||||
maven {
|
||||
name "jboss-snapshots"
|
||||
url "http://snapshots.jboss.org/maven2/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
|
||||
|
@ -31,8 +39,15 @@ buildscript {
|
|||
}
|
||||
}
|
||||
|
||||
ext.hibernateTargetVersion = '4.3.0-SNAPSHOT'
|
||||
ext.javaLanguageLevel = "1.6"
|
||||
ext {
|
||||
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 {
|
||||
project {
|
||||
|
@ -73,9 +88,7 @@ subprojects { subProject ->
|
|||
|
||||
group = 'org.hibernate'
|
||||
version = rootProject.hibernateTargetVersion
|
||||
// The OSGi manifest exported package versions need to be only the numerical release -- no "SNAPSHOT" or "Final"
|
||||
exportPackageVersion = version.replaceAll("-SNAPSHOT", "");
|
||||
exportPackageVersion = exportPackageVersion.replaceAll(".Final", "");
|
||||
ext.exportPackageVersion = rootProject.osgiExportVersion
|
||||
|
||||
// minimize changes, at least for now (gradle uses 'build' by default)..
|
||||
buildDir = "target"
|
||||
|
@ -472,8 +485,10 @@ subprojects { subProject ->
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
generatePomFileForMavenJavaPublication {
|
||||
model {
|
||||
tasks.generatePomFileForMavenJavaPublication {
|
||||
destination = file("$buildDir/generated-pom.xml")
|
||||
}
|
||||
}
|
||||
|
@ -487,3 +502,7 @@ subprojects { subProject ->
|
|||
}
|
||||
|
||||
task release(type: Task, dependsOn: 'release:release')
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = expectedGradleVersion
|
||||
}
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
mavenRepo name: 'jboss-nexus', url: "http://repository.jboss.org/nexus/content/groups/public/"
|
||||
maven {
|
||||
name 'Bintray Asciidoctor repo'
|
||||
url 'http://dl.bintray.com/content/aalmiray/asciidoctor'
|
||||
}
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jboss.jdocbook:gradle-jdocbook:1.2.1"
|
||||
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0'
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
maven {
|
||||
name 'jboss-nexus'
|
||||
url "http://repository.jboss.org/nexus/content/groups/public/"
|
||||
}
|
||||
maven {
|
||||
name 'Bintray Asciidoctor repo'
|
||||
url 'http://dl.bintray.com/content/aalmiray/asciidoctor'
|
||||
}
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
// 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'
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "java"
|
||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
#Fri Sep 06 10:53:39 CDT 2013
|
||||
#Thu Nov 21 10:40:12 CST 2013
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue