mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-09-11 02:02:22 +08:00
Moved workflow samples out of .github/workflows
The `.github/workflows` directory has additional permissions attached, preventing these files from being by the Upgrade Gradle Wrapper plugin.
This commit is contained in:
1
.github/workflow-samples/no-wrapper/build.gradle
vendored
Normal file
1
.github/workflow-samples/no-wrapper/build.gradle
vendored
Normal file
@@ -0,0 +1 @@
|
||||
// Required to keep dependabot happy
|
21
.github/workflow-samples/no-wrapper/settings.gradle
vendored
Normal file
21
.github/workflow-samples/no-wrapper/settings.gradle
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
plugins {
|
||||
id "com.gradle.enterprise" version "3.9"
|
||||
}
|
||||
|
||||
gradleEnterprise {
|
||||
buildScan {
|
||||
termsOfServiceUrl = "https://gradle.com/terms-of-service"
|
||||
termsOfServiceAgree = "yes"
|
||||
publishAlways()
|
||||
uploadInBackground = false
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = 'no-wrapper'
|
||||
|
||||
println "Using Gradle version: ${gradle.gradleVersion}"
|
||||
|
||||
def gradleVersionCheck = System.properties.gradleVersionCheck
|
||||
if (gradleVersionCheck && gradle.gradleVersion != gradleVersionCheck) {
|
||||
throw new RuntimeException("Got the wrong version: expected ${gradleVersionCheck} but was ${gradle.gradleVersion}")
|
||||
}
|
Reference in New Issue
Block a user