Skip to content

Commit 34f0fb7

Browse files
committed
Update github actions
1 parent efd134f commit 34f0fb7

File tree

7 files changed

+825
-152
lines changed

7 files changed

+825
-152
lines changed

.claude/settings.local.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(./gradlew clean build:*)",
5+
"Bash(./gradlew test:*)",
6+
"Bash(git stash:*)",
7+
"Bash(./gradlew clean test --no-daemon)",
8+
"Bash(tee:*)",
9+
"Bash(./gradlew --stop)",
10+
"Bash(cat:*)",
11+
"Bash(find:*)",
12+
"Bash(done)",
13+
"Bash(./gradlew clean:*)",
14+
"Bash(xargs cat:*)",
15+
"Bash(./gradlew compileGroovy compileKotlin:*)",
16+
"Bash(xargs:*)"
17+
],
18+
"deny": [],
19+
"ask": []
20+
}
21+
}

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Nebula Build
2+
permissions:
3+
contents: read
4+
actions: write
5+
on:
6+
push:
7+
branches:
8+
- 'main'
9+
pull_request:
10+
11+
jobs:
12+
buildmultijdk:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
# test against latest update of some major Java version(s), as well as specific LTS version(s)
17+
java: [17, 21, 25]
18+
name: Gradle Build without Publish
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Setup git user
22+
run: |
23+
git config --global user.name "Nebula Plugin Maintainers"
24+
git config --global user.email "nebula-plugins-oss@netflix.com"
25+
- name: Set up JDKs
26+
uses: actions/setup-java@v4
27+
with:
28+
distribution: 'zulu'
29+
java-version: |
30+
17
31+
21
32+
${{ matrix.java }}
33+
java-package: jdk
34+
# - name: Setup Gradle
35+
# uses: gradle/actions/setup-gradle@v5
36+
# with:
37+
# cache-overwrite-existing: true
38+
- name: Gradle build
39+
run: ./gradlew --stacktrace build
40+
env:
41+
JDK_VERSION_FOR_TESTS: ${{ matrix.java }}

.github/workflows/nebula.yml

Lines changed: 0 additions & 149 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v*.*.*
6+
- v*.*.*-rc.*
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
name: Gradle Build and Publish
12+
environment:
13+
name: Publish
14+
url: "https://repo1.maven.org/maven2/com/netflix/nebula/gradle-dependency-lock-plugin/"
15+
env:
16+
NETFLIX_OSS_SONATYPE_USERNAME: ${{ secrets.ORG_SONATYPE_USERNAME }}
17+
NETFLIX_OSS_SONATYPE_PASSWORD: ${{ secrets.ORG_SONATYPE_PASSWORD }}
18+
NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }}
19+
NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }}
20+
NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }}
21+
NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }}
22+
GRADLE_PUBLISH_KEY: ${{ secrets.ORG_GRADLE_PUBLISH_KEY }}
23+
GRADLE_PUBLISH_SECRET: ${{ secrets.ORG_GRADLE_PUBLISH_SECRET }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Setup git user
27+
run: |
28+
git config --global user.name "Nebula Plugin Maintainers"
29+
git config --global user.email "nebula-plugins-oss@netflix.com"
30+
- name: Set up JDKs
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: 'zulu'
34+
java-version: |
35+
17
36+
21
37+
java-package: jdk
38+
# - name: Setup Gradle
39+
# uses: gradle/actions/setup-gradle@v5
40+
# with:
41+
# cache-overwrite-existing: true
42+
- name: Verify plugin publication
43+
if: (!contains(github.ref, '-rc.'))
44+
run: ./gradlew --stacktrace -Prelease.useLastTag=true final publishPlugin --validate-only -x check
45+
- name: Publish candidate
46+
if: contains(github.ref, '-rc.')
47+
run: ./gradlew --info --stacktrace -Prelease.useLastTag=true candidate
48+
- name: Publish release
49+
if: (!contains(github.ref, '-rc.'))
50+
run: ./gradlew --stacktrace -Prelease.useLastTag=true final

src/test/groovy/nebula/plugin/dependencyverifier/DependencyResolutionVerifierTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class DependencyResolutionVerifierTest extends BaseIntegrationTestKitSpec {
216216
buildscript {
217217
repositories { maven { url = "https://plugins.gradle.org/m2/" } }
218218
dependencies {
219-
classpath "com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.14"
219+
classpath "com.github.spotbugs:com.github.spotbugs.gradle.plugin:6.4.8"
220220
}
221221
}
222222
""".stripIndent()
@@ -230,8 +230,8 @@ class DependencyResolutionVerifierTest extends BaseIntegrationTestKitSpec {
230230
configurations.named('spotbugs').configure {
231231
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
232232
if (details.requested.group == 'org.ow2.asm') {
233-
details.useVersion '9.5'
234-
details.because "Asm 9.5 is required for JDK 21 support"
233+
details.useVersion '9.9'
234+
details.because "Asm 9.9 is required for JDK 25 support"
235235
}
236236
}
237237
}

test-globallock-output.log

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.2.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
2+
Daemon will be stopped at the end of the build
3+
4+
> Configure project :
5+
Inferred project: gradle-dependency-lock-plugin, version: 16.2.0-dev.2.uncommitted+plugin.improvements.efd134f
6+
7+
> Task :compileGroovy UP-TO-DATE
8+
> Task :checkKotlinGradlePluginConfigurationErrors SKIPPED
9+
> Task :compileKotlin UP-TO-DATE
10+
> Task :compileJava NO-SOURCE
11+
> Task :pluginDescriptors
12+
> Task :processResources
13+
> Task :classes
14+
> Task :createPropertiesFileForJar
15+
> Task :writeManifestProperties
16+
> Task :jar
17+
> Task :compileTestKotlin NO-SOURCE
18+
> Task :compileTestJava NO-SOURCE
19+
> Task :compileTestGroovy
20+
> Task :pluginUnderTestMetadata
21+
> Task :processTestResources
22+
> Task :testClasses
23+
24+
> Task :test
25+
Executing tests with JDK: 21
26+
27+
GlobalLockLauncherSpec > global lock selective dependency updates FAILED
28+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockLauncherSpec.groovy:71
29+
30+
GlobalLockWithForceLauncherSpec > create global locks in multiproject when force is present FAILED
31+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockWithForceLauncherSpec.groovy:64
32+
33+
GlobalLockMultiProjectLauncherSpec > create global lock in multiproject FAILED
34+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockMultiProjectLauncherSpec.groovy:60
35+
36+
GlobalLockMultiProjectLauncherSpec > create global lock in multiproject FAILED
37+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockMultiProjectLauncherSpec.groovy:60
38+
39+
GlobalLockWithForceLauncherSpec > create global locks in multiproject when force is present FAILED
40+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockWithForceLauncherSpec.groovy:64
41+
42+
GlobalLockLauncherSpec > global lock selective dependency updates FAILED
43+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockLauncherSpec.groovy:71
44+
45+
GlobalLockWithForceLauncherSpec > create global locks in multiproject when force is present FAILED
46+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockWithForceLauncherSpec.groovy:64
47+
48+
GlobalLockLauncherSpec > global lock selective dependency updates FAILED
49+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockLauncherSpec.groovy:71
50+
51+
GlobalLockMultiProjectLauncherSpec > create global lock in multiproject FAILED
52+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockMultiProjectLauncherSpec.groovy:60
53+
54+
GlobalLockLauncherSpec > global lock selective dependency updates FAILED
55+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockLauncherSpec.groovy:71
56+
57+
GlobalLockMultiProjectLauncherSpec > create global lock in multiproject FAILED
58+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockMultiProjectLauncherSpec.groovy:60
59+
60+
GlobalLockWithForceLauncherSpec > create global locks in multiproject when force is present FAILED
61+
org.gradle.testkit.runner.UnexpectedBuildFailure at GlobalLockWithForceLauncherSpec.groovy:64
62+
63+
-----------------------------------------------------------------
64+
| Results: FAILURE (12 tests, 0 passed, 12 failed, 0 skipped) |
65+
-----------------------------------------------------------------
66+
67+
12 tests completed, 12 failed
68+
69+
> Task :test FAILED
70+
71+
[Incubating] Problems report is available at: file:///Users/rperezalcolea/Projects/github/nebula-plugins/gradle-dependency-lock-plugin/build/reports/problems/problems-report.html
72+
73+
FAILURE: Build failed with an exception.
74+
75+
* What went wrong:
76+
Execution failed for task ':test'.
77+
> There were failing tests. See the report at: file:///Users/rperezalcolea/Projects/github/nebula-plugins/gradle-dependency-lock-plugin/build/reports/tests/test/index.html
78+
79+
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
80+
81+
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
82+
83+
For more on this, please refer to https://docs.gradle.org/9.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
84+
85+
BUILD FAILED in 57s
86+
11 actionable tasks: 9 executed, 2 up-to-date
87+
88+
Publishing build scan...
89+
https://gradle.com/s/v5hr5rpiaq2lo
90+

0 commit comments

Comments
 (0)