mirror of
https://github.com/gradle/actions.git
synced 2026-06-06 18:29:39 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d363444d5 |
@@ -0,0 +1,78 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
extends: [
|
||||||
|
"config:recommended",
|
||||||
|
"github>gradle/renovate-agent//presets/dv-automerge-minor.json5",
|
||||||
|
":disableDependencyDashboard",
|
||||||
|
],
|
||||||
|
// Renovate is scoped narrowly here: only the Develocity Gradle plugin (custom regex)
|
||||||
|
// and the Gradle wrappers in selected sample directories.
|
||||||
|
// Everything else (npm, github-actions, Maven coordinates) is managed by Dependabot
|
||||||
|
// via .github/dependabot.yml.
|
||||||
|
enabledManagers: ["custom.regex", "gradle-wrapper"],
|
||||||
|
"gradle-wrapper": {
|
||||||
|
fileMatch: [
|
||||||
|
"^\\.github/workflow-samples/gradle-plugin/gradle/wrapper/gradle-wrapper\\.properties$",
|
||||||
|
"^\\.github/workflow-samples/groovy-dsl/gradle/wrapper/gradle-wrapper\\.properties$",
|
||||||
|
"^\\.github/workflow-samples/java-toolchain/gradle/wrapper/gradle-wrapper\\.properties$",
|
||||||
|
"^\\.github/workflow-samples/kotlin-dsl/gradle/wrapper/gradle-wrapper\\.properties$",
|
||||||
|
"^\\.github/workflow-samples/non-executable-wrapper/gradle/wrapper/gradle-wrapper\\.properties$",
|
||||||
|
"^sources/test/init-scripts/gradle/wrapper/gradle-wrapper\\.properties$",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
customManagers: [
|
||||||
|
{
|
||||||
|
customType: "regex",
|
||||||
|
description: "Bump Develocity Gradle plugin references in files outside Dependabot's coverage",
|
||||||
|
fileMatch: [
|
||||||
|
"^\\.github/workflows/integ-test-inject-develocity\\.yml$",
|
||||||
|
"^sources/src/develocity/build-scan\\.ts$",
|
||||||
|
"^docs/setup-gradle\\.md$",
|
||||||
|
"(^|/)settings\\.gradle$",
|
||||||
|
"(^|/)settings\\.gradle\\.kts$",
|
||||||
|
"(^|/)build\\.gradle$",
|
||||||
|
"(^|/)build\\.gradle\\.kts$",
|
||||||
|
"^sources/test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/BaseInitScriptTest\\.groovy$",
|
||||||
|
"^sources/test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/TestBuildResultRecorder\\.groovy$",
|
||||||
|
],
|
||||||
|
// Patterns capture any X.Y(.Z) version. The packageRules below filter to
|
||||||
|
// just the current 4.x line and skip the pinned 3.x legacy refs.
|
||||||
|
// When the plugin's major version changes, edit `matchCurrentVersion` and
|
||||||
|
// `allowedVersions` in the packageRules block below — no regex edits here.
|
||||||
|
matchStrings: [
|
||||||
|
"plugin-version:[^\\n]*'(?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)'",
|
||||||
|
"DEVELOCITY_PLUGIN_VERSION[^\\n]*'(?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)'",
|
||||||
|
"`v(?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)`\\s+of\\s+the\\s+\\[Develocity Gradle plugin",
|
||||||
|
"id\\s+['\"]com\\.gradle\\.develocity['\"]\\s+version\\s+['\"](?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)['\"]",
|
||||||
|
"id\\(['\"]com\\.gradle\\.develocity['\"]\\)\\s+version\\s+['\"](?<currentValue>\\d+\\.\\d+(?:\\.\\d+)?)['\"]",
|
||||||
|
],
|
||||||
|
depNameTemplate: "com.gradle:develocity-gradle-plugin",
|
||||||
|
datasourceTemplate: "maven",
|
||||||
|
registryUrlTemplate: "https://plugins.gradle.org/m2",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
packageRules: [
|
||||||
|
{
|
||||||
|
// Skip the legacy 3.16.2 references that are intentionally pinned.
|
||||||
|
matchManagers: ["custom.regex"],
|
||||||
|
matchPackageNames: ["com.gradle:develocity-gradle-plugin"],
|
||||||
|
matchCurrentVersion: "<4.0.0",
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Current 4.x line. To start tracking the next major (5.x), replace `5.0.0`
|
||||||
|
// with `6.0.0` in both fields below — no regex edits needed.
|
||||||
|
matchManagers: ["custom.regex"],
|
||||||
|
matchPackageNames: ["com.gradle:develocity-gradle-plugin"],
|
||||||
|
matchCurrentVersion: ">=4.0.0 <5.0.0",
|
||||||
|
allowedVersions: "<5.0.0",
|
||||||
|
groupName: "Develocity Gradle plugin",
|
||||||
|
groupSlug: "develocity-gradle-plugin",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
matchManagers: ["gradle-wrapper"],
|
||||||
|
groupName: "Gradle wrappers",
|
||||||
|
groupSlug: "gradle-wrappers",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -1,10 +1,8 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
|
distributionSha256Sum=2ab2958f2a1e51120c326cad6f385153bb11ee93b3c216c5fccebfdfbb7ec6cb
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
retries=0
|
|
||||||
retryBackOffMs=500
|
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
Vendored
+1
-1
@@ -57,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
+21
-10
@@ -23,8 +23,8 @@
|
|||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|
||||||
@rem Set local scope for the variables, and ensure extensions are enabled
|
@rem Set local scope for the variables with windows NT shell
|
||||||
setlocal EnableExtensions
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%"=="" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
@@ -51,7 +51,7 @@ echo. 1>&2
|
|||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation. 1>&2
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
"%COMSPEC%" /c exit 1
|
goto fail
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
:findJavaFromJavaHome
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
@@ -65,7 +65,7 @@ echo. 1>&2
|
|||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation. 1>&2
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
"%COMSPEC%" /c exit 1
|
goto fail
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
@@ -73,10 +73,21 @@ echo location of your Java installation. 1>&2
|
|||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||||
@rem which allows us to clear the local environment before executing the java command
|
|
||||||
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
|
||||||
|
|
||||||
:exitWithErrorLevel
|
:end
|
||||||
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
@rem End local scope for the variables with windows NT shell
|
||||||
"%COMSPEC%" /c exit %ERRORLEVEL%
|
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||||
|
|
||||||
|
:fail
|
||||||
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
|
rem the _cmd.exe /c_ return code!
|
||||||
|
set EXIT_CODE=%ERRORLEVEL%
|
||||||
|
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||||
|
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||||
|
exit /b %EXIT_CODE%
|
||||||
|
|
||||||
|
:mainEnd
|
||||||
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
|
:omega
|
||||||
|
|||||||
Reference in New Issue
Block a user