hibernate-orm/build.gradle

131 lines
3.7 KiB
Groovy
Raw Normal View History

/*
* 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>.
*/
buildscript {
repositories {
jcenter()
2018-05-24 06:55:51 -04:00
mavenCentral()
}
dependencies {
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
classpath 'org.hibernate.build.gradle:hibernate-matrix-testing:2.0.0.Final'
classpath 'org.hibernate.build.gradle:version-injection-plugin:1.0.0'
classpath 'org.hibernate.build.gradle:gradle-xjc-plugin:1.0.2.Final'
classpath 'gradle.plugin.com.github.lburgazzoli:gradle-karaf-plugin:0.1.1'
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
2019-11-08 12:05:09 -05:00
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'de.thetaphi:forbiddenapis:2.5'
2019-05-21 17:29:57 -04:00
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.1'
}
2010-10-08 21:20:10 -04:00
}
plugins {
2018-09-04 17:42:36 -04:00
id 'com.gradle.build-scan' version '1.16'
id 'me.champeau.buildscan-recipes' version '0.2.3'
2019-05-21 17:29:57 -04:00
id 'org.jetbrains.gradle.plugin.idea-ext' version '0.5'
}
allprojects {
repositories {
mavenCentral()
2018-08-10 11:00:15 -04:00
//Allow loading additional dependencies from a local path;
//useful to load JDBC drivers which can not be distributed in public.
if (System.env['ADDITIONAL_REPO'] != null) {
flatDir {
dirs "${System.env.ADDITIONAL_REPO}"
}
}
// Needed atm for asciidoclet PR-91, which does not seem to work anyway :(
// todo (6.0) : remove once/if PR-91 ever works and becomes part of asciidoclet proper
maven {
name 'jboss-snapshots-repository'
url 'https://repository.jboss.org/nexus/content/repositories/snapshots'
}
}
apply plugin: 'idea'
2019-05-21 17:29:57 -04:00
apply plugin: 'eclipse'
// minimize changes, at least for now (gradle uses 'build' by default)..
buildDir = "target"
apply from: rootProject.file( 'gradle/base-information.gradle' )
2019-05-21 17:29:57 -04:00
2013-11-21 14:46:03 -05:00
}
2013-12-02 21:53:19 -05:00
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Release Task
2010-10-08 21:20:10 -04:00
task release {
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"
// Force to release with JDK 8. Releasing with JDK 11 is not supported yet:
// - the hibernate-orm-modules tests do not run due to an issue with the ASM version currently used by Gradle
doFirst {
if ( !JavaVersion.current().isJava8() ) {
throw new IllegalStateException( "Please use JDK 8 to perform the release." )
}
}
}
2017-08-17 07:04:39 -04:00
2018-02-01 14:19:08 -05:00
task publish {
description = "The task performed when we want to just publish maven artifacts. Relies on " +
"the fact that subprojects will appropriately define a release task " +
2018-02-01 14:19:08 -05:00
"themselves if they have any release-related activities to perform"
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 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"
}
wrapper {
gradleVersion = '4.10.3'
distributionType = Wrapper.DistributionType.ALL
}
2013-12-02 21:53:19 -05:00
buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
2018-09-04 17:42:36 -04:00
}
2018-09-04 17:42:36 -04:00
buildScanRecipes {
recipe 'git-commit', baseUrl: 'https://github.com/hibernate/hibernate-orm/tree'
}
2013-12-02 21:53:19 -05:00
2019-05-21 17:29:57 -04:00
idea {
// project {
// jdkName = baselineJavaVersion
// languageLevel = baselineJavaVersion
//
// vcs = 'Git'
2019-05-21 17:29:57 -04:00
//
// settings {
// taskTriggers {
// afterSync tasks.getByName("projects"), tasks.getByName("tasks")
// }
// }
// }
2019-05-21 17:29:57 -04:00
module {
name = "hibernate-orm"
}
}
2013-11-21 14:46:03 -05:00