diff --git a/settings.gradle b/settings.gradle index 5ef4d0bb86..bd1a0597b0 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,7 +6,8 @@ */ plugins { - id 'com.gradle.enterprise' version '3.2.1' + id 'com.gradle.enterprise' version '3.6.1' + id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.2.1' } if ( !JavaVersion.current().java8Compatible ) { @@ -136,4 +137,25 @@ rootProject.children.each { project -> assert project.projectDir.isDirectory() 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' + } } \ No newline at end of file