diff --git a/build.gradle b/build.gradle index ea8d059e9..cb6f09495 100644 --- a/build.gradle +++ b/build.gradle @@ -31,23 +31,6 @@ gradlePlugin { apply plugin: 'com.github.johnrengelman.shadow' -buildScan { - termsOfServiceUrl = 'https://gradle.com/terms-of-service' - termsOfServiceAgree = 'yes' - if (System.env.CI == 'true') { - tag 'CI' - if (System.env.CIRCLE_TAG) { - link 'VCS', "https://github.com/johnrengelman/shadow/tree/${System.env.CIRCLE_TAG}" - } else { - link 'VCS', "https://github.com/johnrengelman/shadow/tree/${System.env.CIRCLE_BRANCH}" - } - link 'VCS Commit', "https://github.com/johnrengelman/shadow/commit/${System.env.CIRCLE_SHA1}" - if (System.env.CI_PULL_REQUEST) { - link 'Pull Request', "${System.env.CI_PULL_REQUEST}" - } - } -} - apply from: file('gradle/docs.gradle') apply from: file('gradle/publish.gradle') apply from: file('gradle/vuepress.gradle') diff --git a/settings.gradle b/settings.gradle index f82018015..b179e528d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1,24 @@ plugins { - id 'com.gradle.enterprise' version '3.1.1' + id 'com.gradle.enterprise' version '3.12.3' +} + +gradleEnterprise { + buildScan { + termsOfServiceUrl = 'https://gradle.com/terms-of-service' + termsOfServiceAgree = 'yes' + if (System.env.CI == 'true') { + tag 'CI' + if (System.env.CIRCLE_TAG) { + link 'VCS', "https://github.com/johnrengelman/shadow/tree/${System.env.CIRCLE_TAG}" + } else { + link 'VCS', "https://github.com/johnrengelman/shadow/tree/${System.env.CIRCLE_BRANCH}" + } + link 'VCS Commit', "https://github.com/johnrengelman/shadow/commit/${System.env.CIRCLE_SHA1}" + if (System.env.CI_PULL_REQUEST) { + link 'Pull Request', "${System.env.CI_PULL_REQUEST}" + } + } + } } rootProject.name = 'shadow' \ No newline at end of file