From 688eb5bf83b5e7f6b7b9cfb18c3f3f6e32a9f556 Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 16:28:01 +1000 Subject: [PATCH 1/8] #patch: Update groupID --- .github/workflows/build.yml | 1 - .github/workflows/release.yml | 2 -- CONTRIBUTING.md | 4 +-- LATEST_SNAPSHOT.md | 2 +- README.md | 32 +++++++++---------- gradle.properties | 2 +- gradle/publishing.gradle | 10 +++--- .../exceptions/LogGithubIssueException.java | 2 +- .../snapshots/junit5/SnapshotExtension.java | 2 +- 9 files changed, 27 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 491409ea..dbceac0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,6 @@ jobs: WITH_V: false DRY_RUN: true - name: publish - continue-on-error: true env: SNAPSHOT_VERSION: ${{ steps.tag_version_dry_run.outputs.tag }}-SNAPSHOT ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY_ASCII_ARMOR }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea538eda..0935d722 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,6 @@ jobs: RELEASE_VERSION: ${{ steps.tag_version_dry_run.outputs.tag }} run: ./gradlew shadowJar -Pversion=$RELEASE_VERSION - name: Publish to Maven Central - continue-on-error: true env: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY_ASCII_ARMOR }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_KEY_PASSPHRASE }} @@ -37,7 +36,6 @@ jobs: RELEASE_VERSION: ${{ steps.tag_version_dry_run.outputs.tag }} run: ./gradlew -Pversion=$RELEASE_VERSION publish -PossrhUsername=${MAVEN_CENTRAL_TOKEN_USERNAME} -PossrhPassword=${MAVEN_CENTRAL_TOKEN_PASSWORD} -Psign=true - name: Close & Release Staging Repository - continue-on-error: true env: MAVEN_CENTRAL_TOKEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_TOKEN_USERNAME }} MAVEN_CENTRAL_TOKEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN_PASSWORD }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f22fb610..1c300539 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ We welcome contributions to this project by both internal and external parties 1. Ensure Github Actions build passes 1. Await reviews 1. Once merged into `master` a `SNAPSHOT` build will be available for consumption - immediately [here](https://oss.sonatype.org/content/repositories/snapshots/io/github/origin-energy/). Note that + immediately [here](https://oss.sonatype.org/content/repositories/snapshots/io/github/jackmatt2/). Note that snapshots change regularly and cannot be relied upon. 1. Hard Releases will be made once enough features have been added. @@ -71,7 +71,7 @@ export ORG_GRADLE_PROJECT_signingPassword=? ## Releasing [Full Tutorial](https://central.sonatype.org/pages/ossrh-guide.html) 1. Login to SONAR (https://oss.sonatype.org) -1. Click 'Staging Repositories' and locate the 'iogithuborigin-energy' bundle +1. Click 'Staging Repositories' and locate the 'iogithubjackmatt2' bundle 1. Review artifacts are correct in the 'Content' tab 1. Press the 'Close' and give a reason such as "Jack Matthews - Confirmed artifacts are OK" 1. Wait for about 1 min and press the 'Refresh button', if all sanity checks have passed the 'Release' button will be diff --git a/LATEST_SNAPSHOT.md b/LATEST_SNAPSHOT.md index 09687951..17f18246 100644 --- a/LATEST_SNAPSHOT.md +++ b/LATEST_SNAPSHOT.md @@ -15,6 +15,6 @@ dependencies { // Replace {FRAMEWORK} with you testing framework // Replace {X.X.X} with the version number from `/gradle.properties` - testCompile "io.github.origin-energy:java-snapshot-testing-{FRAMEWORK}:{X.X.X}-SNAPSHOT" + testCompile "io.github.codedabble-dev:java-snapshot-testing-{FRAMEWORK}:{X.X.X}-SNAPSHOT" } ``` \ No newline at end of file diff --git a/README.md b/README.md index ad9bf06e..f37f4380 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![Build Status](https://github.com/origin-energy/java-snapshot-testing/workflows/build/badge.svg)](https://github.com/origin-energy/java-snapshot-testing/actions) -[![JitPack](https://jitpack.io/v/origin-energy/java-snapshot-testing.svg)](https://jitpack.io/#origin-energy/java-snapshot-testing) +[![Build Status](https://github.com/jackmatt2/java-snapshot-testing/workflows/build/badge.svg)](https://github.com/jackmatt2/java-snapshot-testing/actions) +[![JitPack](https://jitpack.io/v/jackmatt2/java-snapshot-testing.svg)](https://jitpack.io/#jackmatt2/java-snapshot-testing) # Java Snapshot Testing - Inspired by [facebook's Jest framework](https://facebook.github.io/jest/docs/en/snapshot-testing.html) @@ -7,9 +7,9 @@ 🎉 4.+ is out ## Upgrading -- Upgrade guide from 3.X to 4.X [here](https://github.com/origin-energy/java-snapshot-testing/discussions/94) -- Upgrade guide from 2.X to 3.X [here](https://github.com/origin-energy/java-snapshot-testing/discussions/73) -- Upgrade guide from 2.X-BETA to 2.X [here](https://github.com/origin-energy/java-snapshot-testing/discussions/58) +- Upgrade guide from 3.X to 4.X [here](https://github.com/jackmatt2/java-snapshot-testing/discussions/94) +- Upgrade guide from 2.X to 3.X [here](https://github.com/jackmatt2/java-snapshot-testing/discussions/73) +- Upgrade guide from 2.X-BETA to 2.X [here](https://github.com/jackmatt2/java-snapshot-testing/discussions/58) ## The testing framework loved by ~~lazy~~ __productive__ devs @@ -30,18 +30,18 @@ repositories { } // In this case we are using the JUnit5 testing framework -testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-junit5:4.+' +testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-junit5:4.+' // slf4j logging implementation if you don't already have one testImplementation("org.slf4j:slf4j-simple:2.0.0-alpha0") // Optional: Many will want to serialize into JSON. In this case you should also add the Jackson plugin -testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-plugin-jackson3:4.+' +testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson3:4.+' testImplementation 'tools.jackson.core:jackson-core:3.1.0' testImplementation 'tools.jackson.core:jackson-databind:3.1.0' // For Jackson 2 use the dedicated plugin and serializer classes instead -testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-plugin-jackson:4.+' +testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson:4.+' testImplementation 'com.fasterxml.jackson.core:jackson-core:2.11.3' testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3' @@ -146,7 +146,7 @@ data. - Does not give great insight to why the snapshot failed - Can be difficult to troll though large snapshot changes where you might only be interested in a small set of fields -## Installation [JitPack](https://jitpack.io/#origin-energy/java-snapshot-testing) +## Installation [JitPack](https://jitpack.io/#jackmatt2/java-snapshot-testing) Add JitPack to your build repositories: @@ -161,15 +161,15 @@ Then add the module for your test framework. The `4.+` version uses the latest a Only if you want to integrate with an unsupported framework. [Show me how!](#using-an-unsupported-framework) ```groovy -testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-core:4.+' +testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-core:4.+' ``` We currently support: ```groovy -testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-junit4:4.+' -testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-junit5:4.+' -testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-spock:4.+' +testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-junit4:4.+' +testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-junit5:4.+' +testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-spock:4.+' ``` Plugins @@ -179,12 +179,12 @@ Plugins - You need jackson on your classpath (Gradle example) ```groovy // Jackson 2 plugin - testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-plugin-jackson:4.+' + testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson:4.+' testImplementation 'com.fasterxml.jackson.core:jackson-core:2.11.3' testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3' // Jackson 3 plugin - testImplementation 'com.github.origin-energy.java-snapshot-testing:java-snapshot-testing-plugin-jackson3:4.+' + testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson3:4.+' testImplementation 'tools.jackson.core:jackson-core:3.1.0' testImplementation 'tools.jackson.core:jackson-databind:3.1.0' ``` @@ -339,7 +339,7 @@ public class JUnit4RulesExample { } ``` -See the [ParameterizedTest](https://github.com/origin-energy/java-snapshot-testing/blob/master/java-snapshot-testing-junit4/src/test/java/au/com/origin/snapshots/ParameterizedTest.java) for an example implementation +See the [ParameterizedTest](https://github.com/jackmatt2/java-snapshot-testing/blob/master/java-snapshot-testing-junit4/src/test/java/au/com/origin/snapshots/ParameterizedTest.java) for an example implementation ## [Spock](http://spockframework.org/) diff --git a/gradle.properties b/gradle.properties index 7321d688..8fcd206f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -group=io.github.origin-energy +group=io.github.codedabble-dev version=0.0.0-SNAPSHOT diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle index f8548750..b186163b 100644 --- a/gradle/publishing.gradle +++ b/gradle/publishing.gradle @@ -18,11 +18,11 @@ publishing { pom { name = 'java-snapshot-testing' description = 'Snapshot Testing for Java' - url = 'https://github.com/origin-energy/java-snapshot-testing' + url = 'https://github.com/jackmatt2/java-snapshot-testing' scm { - connection = 'scm:git:https://github.com/origin-energy/java-snapshot-testing' - url = 'https://github.com/origin-energy/java-snapshot-testing' + connection = 'scm:git:https://github.com/jackmatt2/java-snapshot-testing' + url = 'https://github.com/jackmatt2/java-snapshot-testing' } licenses { @@ -36,7 +36,7 @@ publishing { developer { id = 'jack.matthews' name = 'Jack Matthews' - email = 'jack.matthews@origin.com.au' + email = 'dev@codedabble.com' } } @@ -84,6 +84,6 @@ if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword") nexusStaging { username project.property("ossrhUsername") password project.property("ossrhPassword") - packageGroup 'io.github.origin-energy' + packageGroup 'io.github.codedabble-dev' } } diff --git a/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java b/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java index 90549358..960f57a1 100644 --- a/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java +++ b/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java @@ -4,7 +4,7 @@ public class LogGithubIssueException extends RuntimeException { private static final String LOG_SUPPORT_TICKET = "\n\n*** This exception should never be thrown ***\n" - + "Log a support ticket at https://github.com/origin-energy/java-snapshot-testing/issues with details of the exception\n"; + + "Log a support ticket at https://github.com/jackmatt2/java-snapshot-testing/issues with details of the exception\n"; public LogGithubIssueException(String message) { super(message + LOG_SUPPORT_TICKET); diff --git a/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java b/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java index ec21f860..954d3711 100644 --- a/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java +++ b/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java @@ -75,7 +75,7 @@ private boolean shouldFailOnOrphans(ExtensionContext context) { "FAILED: (Java Snapshot Testing) Unable to get JUnit5 ClassTestDescriptor or ClassBasedTestDescriptor!\n" + "Ensure you are using Junit5 >= 5.3.2\n" + "This may be due to JUnit5 changing their private api as we use reflection to access it\n" - + "Log a support ticket https://github.com/origin-energy/java-snapshot-testing/issues and supply your JUnit5 version\n" + + "Log a support ticket https://github.com/jackmatt2/java-snapshot-testing/issues and supply your JUnit5 version\n" + "Setting failOnOrphans=true as this is the safest option." + "This means that running a test alone (say from the IDE) will fail the snapshot, you need to run the entire class.", e); From 129b3af5863cd03f9d6a0cd81c321428864ce1da Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 16:34:11 +1000 Subject: [PATCH 2/8] force deploy --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dbceac0c..1de6016d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,8 @@ jobs: - name: Build with Gradle run: ./gradlew build deploy: - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + + # if: github.event_name == 'push' && github.ref == 'refs/heads/master' name: Deploy SNAPSHOT runs-on: ubuntu-latest steps: From 00df7246515aa89ba35285d3abc8af5fd76551fa Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 16:41:08 +1000 Subject: [PATCH 3/8] fixup naming --- .github/dependabot.yml | 2 +- CONTRIBUTING.md | 4 ++-- README.md | 14 +++++++------- gradle/publishing.gradle | 6 +++--- .../exceptions/LogGithubIssueException.java | 2 +- .../origin/snapshots/junit5/SnapshotExtension.java | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 478c7223..615fc0ac 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ updates: interval: "weekly" day: "friday" assignees: - - "jackmatt2" + - "codedabble-dev" labels: - "dependencies" \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1c300539..f28f546f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ We welcome contributions to this project by both internal and external parties 1. Ensure Github Actions build passes 1. Await reviews 1. Once merged into `master` a `SNAPSHOT` build will be available for consumption - immediately [here](https://oss.sonatype.org/content/repositories/snapshots/io/github/jackmatt2/). Note that + immediately [here](https://oss.sonatype.org/content/repositories/snapshots/io/github/codedabble-dev/). Note that snapshots change regularly and cannot be relied upon. 1. Hard Releases will be made once enough features have been added. @@ -71,7 +71,7 @@ export ORG_GRADLE_PROJECT_signingPassword=? ## Releasing [Full Tutorial](https://central.sonatype.org/pages/ossrh-guide.html) 1. Login to SONAR (https://oss.sonatype.org) -1. Click 'Staging Repositories' and locate the 'iogithubjackmatt2' bundle +1. Click 'Staging Repositories' and locate the 'iogithubcodedabble-dev' bundle 1. Review artifacts are correct in the 'Content' tab 1. Press the 'Close' and give a reason such as "Jack Matthews - Confirmed artifacts are OK" 1. Wait for about 1 min and press the 'Refresh button', if all sanity checks have passed the 'Release' button will be diff --git a/README.md b/README.md index f37f4380..8f585988 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![Build Status](https://github.com/jackmatt2/java-snapshot-testing/workflows/build/badge.svg)](https://github.com/jackmatt2/java-snapshot-testing/actions) -[![JitPack](https://jitpack.io/v/jackmatt2/java-snapshot-testing.svg)](https://jitpack.io/#jackmatt2/java-snapshot-testing) +[![Build Status](https://github.com/codedabble-dev/java-snapshot-testing/workflows/build/badge.svg)](https://github.com/codedabble-dev/java-snapshot-testing/actions) +[![JitPack](https://jitpack.io/v/codedabble-dev/java-snapshot-testing.svg)](https://jitpack.io/#codedabble-dev/java-snapshot-testing) # Java Snapshot Testing - Inspired by [facebook's Jest framework](https://facebook.github.io/jest/docs/en/snapshot-testing.html) @@ -7,9 +7,9 @@ 🎉 4.+ is out ## Upgrading -- Upgrade guide from 3.X to 4.X [here](https://github.com/jackmatt2/java-snapshot-testing/discussions/94) -- Upgrade guide from 2.X to 3.X [here](https://github.com/jackmatt2/java-snapshot-testing/discussions/73) -- Upgrade guide from 2.X-BETA to 2.X [here](https://github.com/jackmatt2/java-snapshot-testing/discussions/58) +- Upgrade guide from 3.X to 4.X [here](https://github.com/codedabble-dev/java-snapshot-testing/discussions/94) +- Upgrade guide from 2.X to 3.X [here](https://github.com/codedabble-dev/java-snapshot-testing/discussions/73) +- Upgrade guide from 2.X-BETA to 2.X [here](https://github.com/codedabble-dev/java-snapshot-testing/discussions/58) ## The testing framework loved by ~~lazy~~ __productive__ devs @@ -146,7 +146,7 @@ data. - Does not give great insight to why the snapshot failed - Can be difficult to troll though large snapshot changes where you might only be interested in a small set of fields -## Installation [JitPack](https://jitpack.io/#jackmatt2/java-snapshot-testing) +## Installation [JitPack](https://jitpack.io/#codedabble-dev/java-snapshot-testing) Add JitPack to your build repositories: @@ -339,7 +339,7 @@ public class JUnit4RulesExample { } ``` -See the [ParameterizedTest](https://github.com/jackmatt2/java-snapshot-testing/blob/master/java-snapshot-testing-junit4/src/test/java/au/com/origin/snapshots/ParameterizedTest.java) for an example implementation +See the [ParameterizedTest](https://github.com/codedabble-dev/java-snapshot-testing/blob/master/java-snapshot-testing-junit4/src/test/java/au/com/origin/snapshots/ParameterizedTest.java) for an example implementation ## [Spock](http://spockframework.org/) diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle index b186163b..161aa617 100644 --- a/gradle/publishing.gradle +++ b/gradle/publishing.gradle @@ -18,11 +18,11 @@ publishing { pom { name = 'java-snapshot-testing' description = 'Snapshot Testing for Java' - url = 'https://github.com/jackmatt2/java-snapshot-testing' + url = 'https://github.com/codedabble-dev/java-snapshot-testing' scm { - connection = 'scm:git:https://github.com/jackmatt2/java-snapshot-testing' - url = 'https://github.com/jackmatt2/java-snapshot-testing' + connection = 'scm:git:https://github.com/codedabble-dev/java-snapshot-testing' + url = 'https://github.com/codedabble-dev/java-snapshot-testing' } licenses { diff --git a/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java b/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java index 960f57a1..28e28475 100644 --- a/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java +++ b/java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/exceptions/LogGithubIssueException.java @@ -4,7 +4,7 @@ public class LogGithubIssueException extends RuntimeException { private static final String LOG_SUPPORT_TICKET = "\n\n*** This exception should never be thrown ***\n" - + "Log a support ticket at https://github.com/jackmatt2/java-snapshot-testing/issues with details of the exception\n"; + + "Log a support ticket at https://github.com/codedabble-dev/java-snapshot-testing/issues with details of the exception\n"; public LogGithubIssueException(String message) { super(message + LOG_SUPPORT_TICKET); diff --git a/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java b/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java index 954d3711..0c6d13db 100644 --- a/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java +++ b/java-snapshot-testing-junit5/src/main/java/au/com/origin/snapshots/junit5/SnapshotExtension.java @@ -75,7 +75,7 @@ private boolean shouldFailOnOrphans(ExtensionContext context) { "FAILED: (Java Snapshot Testing) Unable to get JUnit5 ClassTestDescriptor or ClassBasedTestDescriptor!\n" + "Ensure you are using Junit5 >= 5.3.2\n" + "This may be due to JUnit5 changing their private api as we use reflection to access it\n" - + "Log a support ticket https://github.com/jackmatt2/java-snapshot-testing/issues and supply your JUnit5 version\n" + + "Log a support ticket https://github.com/codedabble-dev/java-snapshot-testing/issues and supply your JUnit5 version\n" + "Setting failOnOrphans=true as this is the safest option." + "This means that running a test alone (say from the IDE) will fail the snapshot, you need to run the entire class.", e); From 244649feafce535d425e47c33a311619982e6d66 Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 17:07:54 +1000 Subject: [PATCH 4/8] Fixup MVN URL's --- gradle/publishing.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle index 161aa617..278e5120 100644 --- a/gradle/publishing.gradle +++ b/gradle/publishing.gradle @@ -66,13 +66,17 @@ afterEvaluate { } if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword")) { + def snapshotRepositoryUrl = 'https://central.sonatype.com/repository/maven-snapshots/' + def releaseRepositoryUrl = 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/' + def stagingServerUrl = 'https://ossrh-staging-api.central.sonatype.com/service/local/' + publishing { repositories { maven { name = 'sonatype' url = uri(project.version.toString().endsWith('-SNAPSHOT') - ? 'https://oss.sonatype.org/content/repositories/snapshots/' - : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') + ? snapshotRepositoryUrl + : releaseRepositoryUrl) credentials { username = project.property("ossrhUsername") password = project.property("ossrhPassword") @@ -82,6 +86,7 @@ if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword") } nexusStaging { + serverUrl stagingServerUrl username project.property("ossrhUsername") password project.property("ossrhPassword") packageGroup 'io.github.codedabble-dev' From b080b34861266352ec1038fb14d97528ce05df5e Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 17:22:21 +1000 Subject: [PATCH 5/8] Update docs --- .github/workflows/build.yml | 3 +-- .github/workflows/release.yml | 1 - README.md | 33 ++++++++++++++++++--------------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1de6016d..dbceac0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,8 +34,7 @@ jobs: - name: Build with Gradle run: ./gradlew build deploy: - - # if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: github.event_name == 'push' && github.ref == 'refs/heads/master' name: Deploy SNAPSHOT runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0935d722..c4f69254 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,4 +57,3 @@ jobs: with: body: ${{steps.github_release.outputs.changelog}} tag_name: ${{ steps.tag_version.outputs.tag }} - files: java-snapshot-testing-*/build/libs/*.jar diff --git a/README.md b/README.md index 8f585988..8b74ccf9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://github.com/codedabble-dev/java-snapshot-testing/workflows/build/badge.svg)](https://github.com/codedabble-dev/java-snapshot-testing/actions) +[![Maven Central](https://img.shields.io/maven-central/v/io.github.codedabble-dev/java-snapshot-testing-core.svg)](https://central.sonatype.com/artifact/io.github.codedabble-dev/java-snapshot-testing-core) [![JitPack](https://jitpack.io/v/codedabble-dev/java-snapshot-testing.svg)](https://jitpack.io/#codedabble-dev/java-snapshot-testing) # Java Snapshot Testing @@ -26,22 +27,22 @@ Then java-snapshot-testing might just be what you are looking for! ```groovy repositories { - maven { url 'https://jitpack.io' } + mavenCentral() } // In this case we are using the JUnit5 testing framework -testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-junit5:4.+' +testImplementation 'io.github.codedabble-dev:java-snapshot-testing-junit5:4.+' // slf4j logging implementation if you don't already have one testImplementation("org.slf4j:slf4j-simple:2.0.0-alpha0") // Optional: Many will want to serialize into JSON. In this case you should also add the Jackson plugin -testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson3:4.+' +testImplementation 'io.github.codedabble-dev:java-snapshot-testing-plugin-jackson3:4.+' testImplementation 'tools.jackson.core:jackson-core:3.1.0' testImplementation 'tools.jackson.core:jackson-databind:3.1.0' // For Jackson 2 use the dedicated plugin and serializer classes instead -testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson:4.+' +testImplementation 'io.github.codedabble-dev:java-snapshot-testing-plugin-jackson:4.+' testImplementation 'com.fasterxml.jackson.core:jackson-core:2.11.3' testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3' @@ -146,13 +147,13 @@ data. - Does not give great insight to why the snapshot failed - Can be difficult to troll though large snapshot changes where you might only be interested in a small set of fields -## Installation [JitPack](https://jitpack.io/#codedabble-dev/java-snapshot-testing) +## Installation [Maven Central](https://central.sonatype.com/search?q=io.github.codedabble-dev) -Add JitPack to your build repositories: +Add Maven Central to your build repositories: ```groovy repositories { - maven { url 'https://jitpack.io' } + mavenCentral() } ``` @@ -161,30 +162,32 @@ Then add the module for your test framework. The `4.+` version uses the latest a Only if you want to integrate with an unsupported framework. [Show me how!](#using-an-unsupported-framework) ```groovy -testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-core:4.+' +testImplementation 'io.github.codedabble-dev:java-snapshot-testing-core:4.+' ``` We currently support: ```groovy -testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-junit4:4.+' -testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-junit5:4.+' -testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-spock:4.+' +testImplementation 'io.github.codedabble-dev:java-snapshot-testing-junit4:4.+' +testImplementation 'io.github.codedabble-dev:java-snapshot-testing-junit5:4.+' +testImplementation 'io.github.codedabble-dev:java-snapshot-testing-spock:4.+' ``` +JitPack remains available as an alternative install route at [jitpack.io/#codedabble-dev/java-snapshot-testing](https://jitpack.io/#codedabble-dev/java-snapshot-testing). + Plugins -- Jackson for JSON serialization -- Jackson 3 for JSON serialization +- [Jackson for JSON serialization](https://central.sonatype.com/artifact/io.github.codedabble-dev/java-snapshot-testing-plugin-jackson) +- [Jackson 3 for JSON serialization](https://central.sonatype.com/artifact/io.github.codedabble-dev/java-snapshot-testing-plugin-jackson3) - You need jackson on your classpath (Gradle example) ```groovy // Jackson 2 plugin - testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson:4.+' + testImplementation 'io.github.codedabble-dev:java-snapshot-testing-plugin-jackson:4.+' testImplementation 'com.fasterxml.jackson.core:jackson-core:2.11.3' testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3' // Jackson 3 plugin - testImplementation 'io.github.codedabble-dev.java-snapshot-testing:java-snapshot-testing-plugin-jackson3:4.+' + testImplementation 'io.github.codedabble-dev:java-snapshot-testing-plugin-jackson3:4.+' testImplementation 'tools.jackson.core:jackson-core:3.1.0' testImplementation 'tools.jackson.core:jackson-databind:3.1.0' ``` From f16b9074014c3592f2e1622719ccc9d1418b7d1a Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 17:27:56 +1000 Subject: [PATCH 6/8] update docs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8b74ccf9..eab55184 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ [![Maven Central](https://img.shields.io/maven-central/v/io.github.codedabble-dev/java-snapshot-testing-core.svg)](https://central.sonatype.com/artifact/io.github.codedabble-dev/java-snapshot-testing-core) [![JitPack](https://jitpack.io/v/codedabble-dev/java-snapshot-testing.svg)](https://jitpack.io/#codedabble-dev/java-snapshot-testing) +> [!IMPORTANT] +> The Maven Central namespace has changed from [`io.github.origin-energy`](https://central.sonatype.com/namespace/io.github.origin-energy) to [`io.github.codedabble-dev`](https://central.sonatype.com/namespace/io.github.codedabble-dev). +> Update your build dependencies to use the new `io.github.codedabble-dev` group ID. + # Java Snapshot Testing - Inspired by [facebook's Jest framework](https://facebook.github.io/jest/docs/en/snapshot-testing.html) From 20e410ba5d3ad02abb632784e36524a02947c0ec Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 18:03:05 +1000 Subject: [PATCH 7/8] fixup --- .github/dependabot.yml | 2 +- .github/workflows/release.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 615fc0ac..478c7223 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ updates: interval: "weekly" day: "friday" assignees: - - "codedabble-dev" + - "jackmatt2" labels: - "dependencies" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4f69254..0935d722 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,3 +57,4 @@ jobs: with: body: ${{steps.github_release.outputs.changelog}} tag_name: ${{ steps.tag_version.outputs.tag }} + files: java-snapshot-testing-*/build/libs/*.jar From 1def33c38c07078f050969cd9c8f129b891f9125 Mon Sep 17 00:00:00 2001 From: Jack Matthews <6348088+jackmatt2@users.noreply.github.com> Date: Mon, 29 Jun 2026 18:07:02 +1000 Subject: [PATCH 8/8] fixup --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 478c7223..63867f56 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,4 @@ -version: 2, +version: 2 updates: - package-ecosystem: "gradle" directory: "/"