mirror of
https://github.com/gradle/actions.git
synced 2026-06-06 18:29:39 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 476a51fac4 |
@@ -1,78 +0,0 @@
|
||||
{
|
||||
"$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",
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "com.gradle.develocity" version "4.4.0"
|
||||
id "com.gradle.develocity" version "4.4.2"
|
||||
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id("com.gradle.develocity") version "4.4.0"
|
||||
id("com.gradle.develocity") version "4.4.2"
|
||||
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "com.gradle.develocity" version "4.4.0"
|
||||
id "com.gradle.develocity" version "4.4.2"
|
||||
}
|
||||
|
||||
develocity {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "com.gradle.develocity" version "4.4.0"
|
||||
id "com.gradle.develocity" version "4.4.2"
|
||||
}
|
||||
|
||||
develocity {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "com.gradle.develocity" version "4.4.0"
|
||||
id "com.gradle.develocity" version "4.4.2"
|
||||
}
|
||||
|
||||
develocity {
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
matrix:
|
||||
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
|
||||
os: ${{fromJSON(inputs.runner-os)}}
|
||||
plugin-version: ['3.16.2', '4.4.0']
|
||||
plugin-version: ['3.16.2', '4.4.2']
|
||||
include:
|
||||
- java-version: 17
|
||||
- gradle: '8.14.3'
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
java-version: 11
|
||||
- plugin-version: '3.16.2'
|
||||
accessKeyEnv: GRADLE_ENTERPRISE_ACCESS_KEY
|
||||
- plugin-version: '4.4.0'
|
||||
- plugin-version: '4.4.2'
|
||||
accessKeyEnv: DEVELOCITY_ACCESS_KEY
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
@@ -92,7 +92,7 @@ jobs:
|
||||
matrix:
|
||||
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
|
||||
os: ${{fromJSON(inputs.runner-os)}}
|
||||
plugin-version: ['3.16.2', '4.4.0']
|
||||
plugin-version: ['3.16.2', '4.4.2']
|
||||
include:
|
||||
- java-version: 17
|
||||
- gradle: '8.14.3'
|
||||
@@ -148,7 +148,7 @@ jobs:
|
||||
matrix:
|
||||
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
|
||||
os: ${{fromJSON(inputs.runner-os)}}
|
||||
plugin-version: [ '3.16.2', '4.4.0' ]
|
||||
plugin-version: [ '3.16.2', '4.4.2' ]
|
||||
include:
|
||||
- java-version: 17
|
||||
- gradle: '8.14.3'
|
||||
@@ -191,7 +191,7 @@ jobs:
|
||||
matrix:
|
||||
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
|
||||
os: ${{fromJSON(inputs.runner-os)}}
|
||||
plugin-version: [ '3.16.2', '4.4.0' ]
|
||||
plugin-version: [ '3.16.2', '4.4.2' ]
|
||||
include:
|
||||
- java-version: 17
|
||||
- gradle: '8.14.3'
|
||||
|
||||
@@ -916,7 +916,7 @@ Here's a minimal example:
|
||||
run: ./gradlew build
|
||||
```
|
||||
|
||||
This configuration will automatically apply `v4.4.0` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
|
||||
This configuration will automatically apply `v4.4.2` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
|
||||
|
||||
This example assumes that the `develocity.your-server.com` server allows anonymous publishing of build scans.
|
||||
In the likely scenario that your Develocity server requires authentication, you will also need to pass a valid [Develocity access key](https://docs.gradle.com/develocity/gradle-plugin/#via_environment_variable) taken from a secret:
|
||||
|
||||
@@ -34,7 +34,7 @@ export async function setup(config: DevelocityConfig): Promise<void> {
|
||||
// except if they are defined in the configuration
|
||||
if (config.getBuildScanPublishEnabled()) {
|
||||
maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true')
|
||||
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.0')
|
||||
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.2')
|
||||
maybeExportVariable('DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION', '2.1')
|
||||
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_URL', config.getTermsOfUseUrl())
|
||||
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_AGREE', config.getTermsOfUseAgree())
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "com.gradle.develocity" version "4.4.0"
|
||||
id "com.gradle.develocity" version "4.4.2"
|
||||
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import java.nio.file.Files
|
||||
import java.util.zip.GZIPOutputStream
|
||||
|
||||
class BaseInitScriptTest extends Specification {
|
||||
static final String DEVELOCITY_PLUGIN_VERSION = '4.4.0'
|
||||
static final String DEVELOCITY_PLUGIN_VERSION = '4.4.2'
|
||||
static final String CCUD_PLUGIN_VERSION = '2.1'
|
||||
|
||||
static final TestGradleVersion GRADLE_4_X = new TestGradleVersion(GradleVersion.version('4.10.3'), 7, 10)
|
||||
|
||||
+1
-1
@@ -248,7 +248,7 @@ task expectFailure {
|
||||
when:
|
||||
settingsFile.text = """
|
||||
plugins {
|
||||
id 'com.gradle.develocity' version '4.4.0' apply(false)
|
||||
id 'com.gradle.develocity' version '4.4.2' apply(false)
|
||||
}
|
||||
gradle.settingsEvaluated {
|
||||
apply plugin: 'com.gradle.develocity'
|
||||
|
||||
Reference in New Issue
Block a user