Slackbot
04/21/2023, 8:11 PMEric Haag
04/21/2023, 10:36 PMEric Haag
04/21/2023, 10:55 PMgradleEnterprise extension like that.Eric Haag
04/21/2023, 11:18 PMDaniel B Duval
04/21/2023, 11:54 PMif (gradle.getParent() == null) {
beforeSettings { settings ->
settings.buildscript.repositories { gradlePluginPortal() }
settings.buildscript.dependencies.add("classpath", "com.gradle:gradle-enterprise-gradle-plugin:3.10")
settings.buildscript.dependencies.add("classpath", "com.gradle:common-custom-user-data-gradle-plugin:1.6.5")
}
settingsEvaluated { settings ->
settings.buildCache {
local {
enabled = true
}
remote(HttpBuildCache) {
url = '<https://your.gradle.enterprise.server/cache/>'
enabled = true
}
}
if (!settings.pluginManager.hasPlugin("com.gradle.enterprise")) {
settings.pluginManager.apply("com.gradle.enterprise")
}
if (!settings.pluginManager.hasPlugin("com.gradle.common-custom-user-data-gradle-plugin")) {
settings.pluginManager.apply("com.gradle.common-custom-user-data-gradle-plugin")
}
settings.extensions["gradleEnterprise"].with {
server = "<https://your.gradle.enterprise.server/>"
buildScan {
publishAlways()
capture {
taskInputFiles = true
}
uploadInBackground = System.getenv('GO_SERVER_URL') != null || System.getenv('GITLAB_CI') != null
}
}
}
}Daniel B Duval
04/21/2023, 11:54 PMno
04/24/2023, 7:53 AMIvan CLOVIS Canet
04/24/2023, 7:53 AM* What went wrong:
Extension of type 'GradleEnterpriseExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, GradleEnterpriseExtension, RefreshVersionsExtension]Ivan CLOVIS Canet
04/24/2023, 7:59 AMno
04/24/2023, 8:00 AM<http://scans.gradle.com|scans.gradle.com>?no
04/24/2023, 8:00 AMIvan CLOVIS Canet
04/24/2023, 8:02 AMAn internal error occurred that prevented a build scan from being created.
Please report this via <https://github.com/gradle/gradle/issues>
with no further information.Ivan CLOVIS Canet
04/24/2023, 8:03 AMno
04/24/2023, 8:04 AMno
04/24/2023, 8:04 AMIvan CLOVIS Canet
04/24/2023, 8:07 AM./gradlew clean --scan on the main branchno
04/24/2023, 8:07 AM--scan in combination with the init script?Ivan CLOVIS Canet
04/24/2023, 8:08 AMno
04/24/2023, 8:08 AM--scan does it still give you the internal error?Ivan CLOVIS Canet
04/24/2023, 8:08 AM--scan there is no error (but of course, it doesn't generate the scan)no
04/24/2023, 8:10 AMpublishAlways() inside the buildScan block in the init script and run without --scan, does it give the error?Ivan CLOVIS Canet
04/24/2023, 8:11 AMno
04/24/2023, 8:11 AMIvan CLOVIS Canet
04/24/2023, 8:12 AMno
04/24/2023, 8:22 AMno
04/24/2023, 9:23 AMIvan CLOVIS Canet
04/25/2023, 7:53 AM