Skip to content

automate maven publish close & release step #476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2025
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
42 changes: 35 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ _defaults: &defaults
working_directory: ~/code
environment:
JVM_OPTS: -Xmx4G
_image: &image
docker:
- image: cimg/openjdk:22.0.2-browsers@sha256:6a2c48853a3693d1673ae10a0146c999de37d810cc507ef085ec7f15e03396e5
resource_class: large
commands:
with_cache:
description: "Caches and restores gradle dependencies"
Expand Down Expand Up @@ -50,9 +54,7 @@ commands:
fi
jobs:
build-linux:
docker:
- image: cimg/openjdk:22.0.2-browsers@sha256:6a2c48853a3693d1673ae10a0146c999de37d810cc507ef085ec7f15e03396e5
resource_class: large
<<: *image
<<: *defaults
steps:
- checkout
Expand Down Expand Up @@ -92,25 +94,51 @@ jobs:
reports_path: build/reports
- gradle_publish:
publish_task: publishApple
finalize-release:
<<: *image
<<: *defaults
steps:
- checkout
- with_cache:
cache_key: linux
steps:
- run:
name: Close & Release
command: ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository
workflows:
version: 2
build:
jobs:
- build-linux:
filters:
branches:
ignore: main
ignore:
- main
- build-macos:
filters:
branches:
ignore: main
ignore:
- main
- build-linux:
name: build-linux-publish
context: opensource-maven
filters:
branches:
only: main
only:
- main
- build-macos:
name: build-macos-publish
context: opensource-maven
filters:
branches:
only:
- main
- finalize-release:
context: opensource-maven
requires:
- build-linux-publish
- build-macos-publish
filters:
branches:
only: main
only:
- main
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fun MavenPublication.mavenCentralPom() {
developers {
developer {
id.set("evant")
name.set("Evan Tatarka")
name.set("Eva Tatarka")
}
}
scm {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ kotlin-compile-testing = [
kotlin-test-junit5 = ["junit5-api", "junit5-params", "kotlin-reflect"]
[plugins]
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version = "1.1.0" }
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0" }
jmh = { id = "me.champeau.jmh", version = "0.6.6" }