HHH-14634 : Gradle Enterprise

- extracted config into `gradle-enterprise.gradle` to help move config to other branches/projects
This commit is contained in:
Steve Ebersole 2021-05-24 12:25:53 -05:00
parent 4880eab484
commit 63c10e8ec0
2 changed files with 33 additions and 21 deletions

View File

@ -0,0 +1,31 @@
/*
* 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
*/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Applies details for `https://ge.hibernate.org`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gradleEnterprise {
server = 'https://ge.hibernate.org'
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
captureTaskInputFiles = true
uploadInBackground = true
if ( System.properties.CI == true ) {
// always publish build-scans and upload the scans immediately
publishAlways()
uploadInBackground = false
tag 'ci'
}
value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
}
}

View File

@ -10,6 +10,8 @@ plugins {
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.2.1'
}
apply from: file( 'gradle/gradle-enterprise.gradle' )
if ( !JavaVersion.current().java8Compatible ) {
throw new GradleException( "Gradle must be run with Java 8 or later" )
}
@ -138,24 +140,3 @@ rootProject.children.each { project ->
assert project.buildFile.exists()
assert project.buildFile.isFile()
}
gradleEnterprise {
server = 'https://ge.hibernate.org'
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
captureTaskInputFiles = true
uploadInBackground = true
if ( System.properties.CI == true ) {
// always publish build-scans and upload the scans immediately
publishAlways()
uploadInBackground = false
tag 'ci'
}
value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
}
}