Skip to content

Commit

Permalink
build: apply workaround for gradle bug (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Jan 19, 2024
1 parent 9517b62 commit 805af19
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 93 deletions.
54 changes: 0 additions & 54 deletions .github/actions/bump-version/action.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/run-tests/action.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/actions/setup-build/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/checkstyle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: eclipse-edc/.github/.github/actions/setup-build@main

- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: eclipse-edc/.github/.github/actions/setup-build@main

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-all-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bump-version
- uses: eclipse-edc/.github/.github/actions/bump-version@main
with:
target_branch: "main"
base_version: ${{ needs.Prepare-Release.outputs.metamodel-version }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: eclipse-edc/.github/.github/actions/setup-build@main

- name: Run unit tests
uses: ./.github/actions/run-tests
uses: eclipse-edc/.github/.github/actions/run-tests@main
with:
command: ./gradlew test

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trigger_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
Publish-Snapshot:
# This workflow will abort if the required secrets don't exist
uses: eclipse-edc/.github/.github/workflows/publish-snapshot.yml@main
secrets: inherit

6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,10 @@ allprojects {
from("${rootProject.projectDir.path}/LICENSE")
}
}

// FIXME - workaround for https://github.com/gradle/gradle/issues/26091
val signingTasks = tasks.withType<Sign>()
tasks.withType<AbstractPublishToMaven>().configureEach {
mustRunAfter(signingTasks)
}
}

0 comments on commit 805af19

Please sign in to comment.