Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ defaults:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30 # a hung Gradle daemon otherwise holds the runner for 6 hours
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -206,6 +207,7 @@ jobs:
needs: build
if: github.event_name == 'workflow_dispatch' && !inputs.dry_run
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write # create the tag and the release
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ publishing {
}
}
}
// Without -PreleaseVersion the version is 'local', and GitHub Packages never lets a version be
// overwritten. Releases go through the Release Android API workflow; publishToMavenLocal is unaffected.
tasks.withType(PublishToMavenRepository).configureEach {
doFirst {
if (publication.version == 'local') {
throw new GradleException("Refusing to publish ${publication.artifactId} as version 'local'. " +
"Release with the Release Android API workflow, or pass -PreleaseVersion.")
}
}
}
dependencies {
implementation 'com.google.guava:guava:20.0'
implementation 'java3d:vecmath:1.3.1'
Expand Down
Loading