[2.x] feat: Ivyless Maven repo publish#8692
Merged
eed3si9n merged 3 commits intosbt:developfrom Feb 5, 2026
Merged
Conversation
- Add ivylessPublishMavenToFile and ivylessPublishMavenToUrl for Maven layout - Handle MavenCache and MavenRepo in ivylessPublishTask (file + HTTP) - Add credentialFor for realm+host credential matching per Publishing docs - Consume HTTP response body on success to avoid connection leak - Add scripted tests: ivyless-publish-maven, ivyless-publish-maven-http
Contributor
Author
|
@eed3si9n Ready for review! |
eed3si9n
reviewed
Feb 5, 2026
sbt-app/src/sbt-test/dependency-management/ivyless-publish-maven-http/build.sbt
Show resolved
Hide resolved
- Move library to subproject `a` (publisher) - Add subproject `b` that consumes `a` from HTTP Maven repo - Add GET support to HttpPutServer for artifact resolution - Scope server tasks to Global to prevent port conflicts - Remove dead publishToHttp task
- Convert function bodies to braceless style - Use `if ... then ... else` syntax - Use `.foreach:` and `.map:` syntax - Use `match` without braces
Contributor
Author
Done! Updated to use Scala 3 "fewer braces" syntax:
All tests pass ( |
eed3si9n
approved these changes
Feb 5, 2026
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.
Summary
Implements Ivyless Maven repo publish (issue #8688). When
useIvyis false andpublishTois a Maven repo (MavenCacheorMavenRepo), thepublishtask now uses the ivyless publisher and writes artifacts in Maven layout without Apache Ivy.fixes #8688
Problem
With
useIvy := false,publishonly supportedURLRepositoryandFileRepository(Ivy-style). Users settingpublishTo := Some(MavenCache(...))orpublishTo := Some("name" at "http://...")hit the fallback and still used Ivy.Solution
MavenCacheandMavenRepoinivylessPublishTask: file repos viaivylessPublishMavenToFile, HTTP viaivylessPublishMavenToUrl.groupId/artifactId/version/artifactId-version[-classifier].ext, with checksums.credentialForfor credential matching (host and optional realm) and consume HTTP response body on success to avoid connection leaks.ivyless-publish-maven(file),ivyless-publish-maven-http(HTTP PUT server).Testing
mainProj/Test/test— unit tests (passed).scalafmtCheckAll— lint (passed).dependency-management/ivyless-publish-maven,dependency-management/ivyless-publish-maven-http.Checklist