2016-03-15 18:23:53 +02:00
|
|
|
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
|
2016-01-25 10:08:54 -06:00
|
|
|
/*
|
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
|
|
|
*
|
|
|
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
|
|
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
|
|
|
*/
|
|
|
|
|
2015-04-09 11:36:04 -05:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-05-24 05:55:51 -05:00
|
|
|
mavenCentral()
|
2015-04-09 11:36:04 -05:00
|
|
|
maven {
|
|
|
|
name "jboss-snapshots"
|
|
|
|
url "http://snapshots.jboss.org/maven2/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
|
2015-07-21 12:01:39 -05:00
|
|
|
classpath 'org.hibernate.build.gradle:hibernate-matrix-testing:2.0.0-SNAPSHOT'
|
2015-04-09 11:36:04 -05:00
|
|
|
classpath 'org.hibernate.build.gradle:version-injection-plugin:1.0.0'
|
2015-04-09 21:42:42 -05:00
|
|
|
classpath 'org.hibernate.build.gradle:gradle-xjc-plugin:1.0.2.Final'
|
2015-05-12 13:57:40 -05:00
|
|
|
classpath 'com.github.lburgazzoli:lb-karaf-features-gen:1.0.0-SNAPSHOT'
|
2018-01-10 15:06:58 -06:00
|
|
|
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
|
2018-01-22 11:43:16 -06:00
|
|
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
|
2018-05-12 20:29:50 -05:00
|
|
|
classpath 'de.thetaphi:forbiddenapis:2.5'
|
2015-04-09 11:36:04 -05:00
|
|
|
}
|
2010-10-08 20:20:10 -05:00
|
|
|
}
|
|
|
|
|
2016-09-26 17:33:20 -05:00
|
|
|
plugins {
|
2017-08-17 13:04:39 +02:00
|
|
|
id 'com.gradle.build-scan' version '1.9'
|
2016-12-16 15:55:32 +00:00
|
|
|
id 'me.champeau.buildscan-recipes' version '0.1.7'
|
2016-09-26 17:33:20 -05:00
|
|
|
}
|
|
|
|
|
2015-04-09 11:36:04 -05:00
|
|
|
allprojects {
|
2018-01-10 15:06:58 -06:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name "jboss-snapshots"
|
|
|
|
url "http://snapshots.jboss.org/maven2/"
|
|
|
|
}
|
|
|
|
}
|
2018-01-02 13:47:29 -06:00
|
|
|
|
|
|
|
// minimize changes, at least for now (gradle uses 'build' by default)..
|
|
|
|
buildDir = "target"
|
2016-08-05 10:08:35 -05:00
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
apply from: rootProject.file( 'gradle/base-information.gradle' )
|
2013-11-21 13:46:03 -06:00
|
|
|
}
|
2012-07-19 08:56:31 -05:00
|
|
|
|
2013-12-02 20:53:19 -06:00
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2018-01-22 11:28:24 -06:00
|
|
|
// Release Task
|
2010-10-08 20:20:10 -05:00
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
task release {
|
2018-01-22 11:28:24 -06:00
|
|
|
description = "The task performed when we are performing a release build. Relies on " +
|
|
|
|
"the fact that subprojects will appropriately define a release task " +
|
|
|
|
"themselves if they have any release-related activities to perform"
|
2018-01-10 15:06:58 -06:00
|
|
|
}
|
2017-08-17 13:04:39 +02:00
|
|
|
|
2018-02-01 13:19:08 -06:00
|
|
|
task publish {
|
|
|
|
description = "The task performed when we want to just publish maven artifacts. Relies on " +
|
|
|
|
"the fact that subprojects will have a task named pubappropriately define a release task " +
|
|
|
|
"themselves if they have any release-related activities to perform"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-03-31 12:04:10 -05:00
|
|
|
|
2018-01-22 11:28:24 -06:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// CI Build Task
|
|
|
|
|
|
|
|
task ciBuild {
|
|
|
|
description = "The task performed when one of the 'main' jobs are triggered on the " +
|
|
|
|
"CI server. Just as above, relies on the fact that subprojects will " +
|
|
|
|
"appropriately define a release task themselves if they have any tasks " +
|
|
|
|
"which should be performed from these CI jobs"
|
2018-01-19 09:56:35 -06:00
|
|
|
}
|
2017-10-23 11:40:23 +01:00
|
|
|
|
2018-01-22 11:28:24 -06:00
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
task wrapper(type: Wrapper) {
|
2018-03-26 14:37:56 -05:00
|
|
|
gradleVersion = '4.6'
|
2018-01-10 15:06:58 -06:00
|
|
|
distributionType = 'ALL'
|
|
|
|
}
|
2013-12-02 20:53:19 -06:00
|
|
|
|
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
buildScan {
|
|
|
|
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
|
|
|
|
licenseAgree = 'yes'
|
2017-09-21 20:59:05 +01:00
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
recipe 'git-commit', baseUrl: 'https://github.com/hibernate/hibernate-orm/tree'
|
|
|
|
}
|
2013-12-02 20:53:19 -06:00
|
|
|
|
2015-04-20 12:00:12 -05:00
|
|
|
|
2013-12-02 20:53:19 -06:00
|
|
|
|
|
|
|
|
2017-12-13 09:15:22 -06:00
|
|
|
|
2017-12-22 11:49:07 -06:00
|
|
|
|
2013-12-02 20:53:19 -06:00
|
|
|
|
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
//idea {
|
|
|
|
// project {
|
|
|
|
// jdkName = baselineJavaVersion
|
|
|
|
// languageLevel = baselineJavaVersion
|
|
|
|
//
|
|
|
|
// vcs = 'Git'
|
|
|
|
// }
|
|
|
|
// module {
|
|
|
|
// name = "hibernate-orm"
|
|
|
|
// }
|
|
|
|
//}
|
2013-05-16 18:51:53 -05:00
|
|
|
|
2013-11-21 13:46:03 -06:00
|
|
|
|
2015-05-18 16:48:10 +01:00
|
|
|
|
2016-12-16 15:55:32 +00:00
|
|
|
|
2018-01-10 15:06:58 -06:00
|
|
|
//allprojects {
|
|
|
|
// apply plugin: 'idea'
|
|
|
|
// apply plugin: 'eclipse'
|
|
|
|
//}
|
2016-09-26 17:33:20 -05:00
|
|
|
|
|
|
|
|
|
|
|
|