Repository navigation
Conversation
OSSRH (oss.sonatype.org), which uploadArchives published to, was shut down in June 2025. JitPack builds a version from its tag the first time it is requested, running publishToMavenLocal as set up in jitpack.yml, and serves it as com.github.LucidtechAI:las-sdk-java:<tag>. The Publish workflow requests the release when it is published, so it is built from the tag right away and a failed build fails the workflow with JitPack's build log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an alternative to #37 that avoids Maven Central, where publishing may need the paid Publisher Pro tier. Only one of the two should be merged.
make publishuploaded to OSSRH (oss.sonatype.org), which Sonatype shut down in June 2025. With this PR, JitPack builds each release from its GitHub tag and serves it. JitPack needs no account, token or signing key for a public repository.How a release works
versionin gradle.properties.v<version>, such asv4.0.1.Users then depend on it like this:
What changes for users
ai.lucidtech:las-sdk-java:4.0.0becomescom.github.LucidtechAI:las-sdk-java:v4.0.1, and users have to add the JitPack repository. 4.0.0 and earlier stay on Maven Central.ai.lucidtech. This needs a DNS TXT record ongit.lucidtech.aithat points tohttps://github.com/LucidtechAI(JitPack docs). The version would still be the tag,v4.0.1. I haven't tried it, as it needs the DNS record. If you want it, the README examples would change toai.lucidtech.Changes
build.gradle: the deprecatedmavenplugin and the dead OSSRHuploadArchivesare replaced withmaven-publish. JitPack runspublishToMavenLocaland serves what it installs. Signing is gone, since JitPack doesn't use signatures. The POM keeps the 4.0.0 metadata (description, licence, SCM, developers). JitPack rewrites the group and version in the POM and in the Gradle module metadata tocom.github.LucidtechAIand the tag.jitpack.yml: builds with JDK 8 and runs./gradlew publishToMavenLocal. JitPack's default command,build publishToMavenLocal, would run the tests, which need the mock API in Docker. The tests already run in CI on every PR..github/workflows/publish.yml: the tag check and the JitPack build. It needs no secrets, onlycontents: read.Makefile:make publishis replaced withmake install, which runspublishToMavenLocal.Testing
b7e0aa0261, and1e8943f7fb, the commit in this PR) with JDK 8. It served the jar, sources, javadoc, POM and module, with the coordinates rewritten tocom.github.LucidtechAI:las-sdk-java:<commit>.com.github.LucidtechAI:las-sdk-java:1e8943f7fbtogether with org.json, httpclient and commons-io.noneuntil the build finishes. So the step waits on the POM request, and checks the API forErroronly when that request fails.Relation to other PRs
v4.0.1isn't tagged yet.🤖 Generated with Claude Code