2016-01-25 11:08:54 -05: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 12:36:04 -04:00
|
|
|
buildscript {
|
2022-04-22 19:40:06 -04:00
|
|
|
// repositories {
|
|
|
|
// mavenCentral()
|
|
|
|
// }
|
2020-10-15 18:20:30 -04:00
|
|
|
|
2015-04-09 12:36:04 -04:00
|
|
|
dependencies {
|
2024-07-15 13:27:12 -04:00
|
|
|
// classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
|
2024-08-07 07:52:12 -04:00
|
|
|
classpath buildscriptLibs.forbiddenapis
|
2019-05-21 17:29:57 -04:00
|
|
|
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.1'
|
2015-04-09 12:36:04 -04:00
|
|
|
}
|
2010-10-08 21:20:10 -04:00
|
|
|
}
|
|
|
|
|
2021-05-14 15:59:59 -04:00
|
|
|
|
2016-09-26 18:33:20 -04:00
|
|
|
plugins {
|
2024-12-26 19:10:53 -05:00
|
|
|
id "local.module"
|
|
|
|
|
2024-06-17 02:58:58 -04:00
|
|
|
id "org.hibernate.build.version-injection" version "2.0.0" apply false
|
2021-09-22 18:52:06 -04:00
|
|
|
id 'org.hibernate.matrix-test' version '3.1.1' apply false
|
2022-04-22 19:40:06 -04:00
|
|
|
id 'org.hibernate.orm.database-service' apply false
|
2024-06-17 02:58:58 -04:00
|
|
|
id 'biz.aQute.bnd' version '7.0.0' apply false
|
2021-09-22 18:52:06 -04:00
|
|
|
|
2024-09-14 13:10:26 -04:00
|
|
|
id 'com.diffplug.spotless' version '6.25.0'
|
2024-06-11 10:19:06 -04:00
|
|
|
id 'org.checkerframework' version '0.6.40'
|
2023-08-07 21:05:47 -04:00
|
|
|
id 'org.hibernate.orm.build.jdks'
|
2023-04-05 07:59:39 -04:00
|
|
|
|
2024-06-17 02:58:58 -04:00
|
|
|
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
|
2021-05-14 15:59:59 -04:00
|
|
|
|
|
|
|
id 'idea'
|
2021-06-26 09:46:09 -04:00
|
|
|
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.0'
|
2021-05-14 15:59:59 -04:00
|
|
|
id 'eclipse'
|
2023-10-04 17:02:22 -04:00
|
|
|
id "com.dorongold.task-tree" version "2.1.1"
|
2016-09-26 18:33:20 -04:00
|
|
|
}
|
|
|
|
|
2024-12-05 01:51:07 -05:00
|
|
|
|
2018-01-10 16:06:58 -05:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2024-12-26 19:10:53 -05:00
|
|
|
// Releasing
|
|
|
|
|
|
|
|
tasks.register( 'releasePrepare' ) {
|
|
|
|
group "release-prepare"
|
|
|
|
description "Scripted release 'Release Prepare' stage. " +
|
|
|
|
"Includes various checks as to the publish-ability of the project: testing, generation, etc. " +
|
|
|
|
"Sub-projects register their own `releasePrepare` to hook into this stage."
|
|
|
|
// See `:release:releasePrepare` which does a lot of heavy lifting here
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
2017-08-17 07:04:39 -04:00
|
|
|
|
2024-12-26 19:10:53 -05:00
|
|
|
tasks.register( 'releasePerform' ) {
|
|
|
|
group "release-perform"
|
|
|
|
description "Scripted release 'Release Perform' stage. " +
|
|
|
|
"Generally this entails publishing artifacts to various servers. " +
|
|
|
|
"Sub-projects register their own `releasePerform` to hook into this stage."
|
|
|
|
// See `:release:releasePerform` which does a lot of heavy lifting here
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-05-14 17:47:30 -04:00
|
|
|
nexusPublishing {
|
|
|
|
repositories {
|
2024-12-12 13:18:31 -05:00
|
|
|
sonatype()
|
2021-05-14 15:59:59 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-31 13:04:10 -04:00
|
|
|
|
2018-01-22 12:28:24 -05:00
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// CI Build Task
|
|
|
|
|
2024-12-12 13:18:31 -05:00
|
|
|
tasks.register('ciBuild') {
|
2018-01-22 12:28:24 -05:00
|
|
|
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 10:56:35 -05:00
|
|
|
}
|
2017-10-23 06:40:23 -04:00
|
|
|
|
2018-01-22 12:28:24 -05:00
|
|
|
|
2021-05-14 15:59:59 -04:00
|
|
|
|
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// Misc...
|
|
|
|
|
2018-06-11 11:40:09 -04:00
|
|
|
wrapper {
|
2019-10-21 12:48:17 -04:00
|
|
|
// To upgrade the version of gradle used in the wrapper, run:
|
|
|
|
// ./gradlew wrapper --gradle-version NEW_VERSION
|
2022-03-16 09:27:57 -04:00
|
|
|
|
|
|
|
// uncomment locally if you need to debug build scripts.
|
|
|
|
// in such cases, having the sources helps
|
|
|
|
//distributionType = Wrapper.DistributionType.ALL
|
2018-01-10 16:06:58 -05:00
|
|
|
}
|
2013-12-02 21:53:19 -05:00
|
|
|
|
|
|
|
|
2019-05-21 17:29:57 -04:00
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
name = "hibernate-orm"
|
|
|
|
}
|
|
|
|
}
|