diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7cb7b2..4219a5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,6 +35,7 @@ jobs: uses: gradle/actions/setup-gradle@v5 with: cache-overwrite-existing: true + build-scan-publish: true build-scan-terms-of-use-url: 'https://gradle.com/terms-of-service' build-scan-terms-of-use-agree: 'yes' - name: Gradle build diff --git a/.github/workflows/refresh-locks.yml b/.github/workflows/refresh-locks.yml new file mode 100644 index 0000000..20250a0 --- /dev/null +++ b/.github/workflows/refresh-locks.yml @@ -0,0 +1,40 @@ +name: Refresh Dependency Locks +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * 1" + +jobs: + refresh-locks: + runs-on: ubuntu-latest + name: Refresh Dependency Locks + steps: + - uses: actions/checkout@v6 + - name: Setup git user + run: | + git config --global user.name "Nebula Plugin Maintainers" + git config --global user.email "nebula-plugins-oss@netflix.com" + - name: Set up JDKs + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 21 + java-package: jdk + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v5 + with: + cache-overwrite-existing: true + build-scan-publish: true + build-scan-terms-of-use-url: 'https://gradle.com/terms-of-service' + build-scan-terms-of-use-agree: 'yes' + - name: Gradle build + run: ./gradlew resolve --write-locks --refresh-dependencies --stacktrace + - name: Commit + run: | + git checkout -b dependency-update + git commit -a -m "Update dependencies" + git push -u origin dependency-update + - name: Open PR + run: gh pr create -B main -H dependency-update --title 'Update dependencies' --body 'Created by Github action' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/gradle.lockfile b/gradle.lockfile index 504e4f3..7194727 100644 --- a/gradle.lockfile +++ b/gradle.lockfile @@ -5,12 +5,12 @@ cglib:cglib-nodep:3.2.2=testRuntimeClasspath com.fasterxml.jackson:jackson-bom:2.14.2=runtimeClasspath,testRuntimeClasspath com.jcraft:jzlib:1.1.2=runtimeClasspath,testRuntimeClasspath com.netflix.nebula:gradle-contacts-plugin:8.1.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -com.netflix.nebula:gradle-dependency-lock-plugin:16.1.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.netflix.nebula:gradle-dependency-lock-plugin:17.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.netflix.nebula:gradle-info-plugin:16.2.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.netflix.nebula:nebula-dependencies-comparison:0.2.1=runtimeClasspath,testRuntimeClasspath com.netflix.nebula:nebula-gradle-interop:3.1.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -com.netflix.nebula:nebula-publishing-plugin:23.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -com.netflix.nebula:nebula-test:11.13.0=testCompileClasspath,testRuntimeClasspath +com.netflix.nebula:nebula-publishing-plugin:23.1.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.netflix.nebula:nebula-test:12.2.0=testCompileClasspath,testRuntimeClasspath com.perforce:p4java:2015.2.1365273=runtimeClasspath,testRuntimeClasspath com.squareup.moshi:moshi:1.12.0=runtimeClasspath,testRuntimeClasspath com.squareup.okio:okio:2.10.0=runtimeClasspath,testRuntimeClasspath diff --git a/settings.gradle.kts b/settings.gradle.kts index f5de92e..22e2741 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,18 +1,10 @@ pluginManagement { plugins { + id("com.netflix.nebula.oss.settings") version("25.+") id("com.netflix.nebula.plugin-plugin") version ("25.+") } } - plugins { - id("com.gradle.develocity") version ("4.2") + id("com.netflix.nebula.oss.settings") } - -develocity { - buildScan { - termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use" - termsOfUseAgree = "yes" - } -} - rootProject.name = "nebula-project-plugin"