HHH-5616 - Switch to Gradle for builds
This commit is contained in:
parent
f8acf15d41
commit
9440bb8181
15
build.gradle
15
build.gradle
|
@ -85,9 +85,10 @@ subprojects { subProject ->
|
||||||
// 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"
|
||||||
|
|
||||||
if ( 'hibernate-release' != subProject.name ) {
|
if ( ! subProject.name.startsWith( 'hibernate-release' ) ) {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven' // for install task as well as deploy dependencies
|
apply plugin: 'maven' // for install task as well as deploy dependencies
|
||||||
|
// apply plugin: org.hibernate.build.gradle.upload.UploadManager
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
provided {
|
provided {
|
||||||
|
@ -192,11 +193,11 @@ subprojects { subProject ->
|
||||||
pom.project pomConfig
|
pom.project pomConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! project.hasProperty('MY_JBOSS_USER') ) {
|
if ( ! project.hasProperty('JBOSS_NEXUS_USERNAME') ) {
|
||||||
MY_JBOSS_USER = "";
|
JBOSS_NEXUS_USERNAME = "";
|
||||||
}
|
}
|
||||||
if ( ! project.hasProperty('MY_JBOSS_PASS') ) {
|
if ( ! project.hasProperty('JBOSS_NEXUS_PASSWORD') ) {
|
||||||
MY_JBOSS_PASS = "";
|
JBOSS_NEXUS_PASSWORD = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
|
@ -204,7 +205,9 @@ subprojects { subProject ->
|
||||||
name = 'jbossDeployer'
|
name = 'jbossDeployer'
|
||||||
configuration = configurations.deployerJars
|
configuration = configurations.deployerJars
|
||||||
pom.project pomConfig
|
pom.project pomConfig
|
||||||
credentials = [userName: MY_JBOSS_USER, password: MY_JBOSS_PASS]
|
// repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/")
|
||||||
|
// snapshotRepository(url: "https://repository.jboss.org/nexus/content/repositories/snapshots")
|
||||||
|
credentials = [userName: JBOSS_NEXUS_USERNAME, password: JBOSS_NEXUS_PASSWORD]
|
||||||
repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/") {
|
repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/") {
|
||||||
authentication(credentials)
|
authentication(credentials)
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
apply plugin: 'groovy'
|
||||||
|
apply plugin: 'idea'
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
mavenRepo urls: "file://" + System.getProperty('user.home') + "/.m2/repository/"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile gradleApi()
|
||||||
|
compile localGroovy()
|
||||||
|
compile 'org.apache.ant:ant:1.7.0'
|
||||||
|
compile 'org.apache.maven:maven-ant-tasks:2.1.0'
|
||||||
|
compile 'org.apache.maven.wagon:wagon-http:1.0-beta-6'
|
||||||
|
|
||||||
|
groovy localGroovy()
|
||||||
|
}
|
Loading…
Reference in New Issue