Skip to content

[1.x] bport: Upgrade launcher-package from sbt 0.13 to 1.x#8493

Merged
eed3si9n merged 3 commits intosbt:1.12.xfrom
eed3si9n:bport/launcher-package
Jan 12, 2026
Merged

[1.x] bport: Upgrade launcher-package from sbt 0.13 to 1.x#8493
eed3si9n merged 3 commits intosbt:1.12.xfrom
eed3si9n:bport/launcher-package

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Jan 12, 2026

Ref #8465

Backport the series of PRs to port launcher-package to sbt 1.x.

MkDev11 and others added 3 commits January 11, 2026 21:39
…h-http (sbt#8465)

Fixes sbt#7826

Changes:
- Upgrade sbt version from 0.13.18 to 1.10.7 in launcher-package/project/build.properties
- Remove dead dispatch-http 0.8.10 dependency from plugins.sbt
- Update sbt-native-packager from 1.7.6 to 1.10.4 (com.github.sbt)
- Update sbt-pgp from 2.1.2 to 2.3.1
- Replace all dispatch.classic._ HTTP calls with Java URL.openStream()

The dispatch-http library is dead and doesn't support sbt 1.x. This change
uses standard Java networking APIs for HTTP downloads, eliminating the
dependency on outdated libraries.

All HTTP download operations now use:
- java.net.URL.openConnection()
- InputStream with buffered reading
- Proper resource cleanup with try-finally blocks

- Removes the sbt-export-repo plugin dependency
- Defines exportRepo and exportRepoDirectory settings locally
- Removes ExportRepoPlugin from dist project
- Fixes exportRepo task to not reference itself

* fix: Update PackageSignerPlugin.scala for sbt 1.x compatibility
- Use withExtension instead of copy(extension = ...) for Artifact
- Update Classpaths.publishConfig to use sbt 1.x signature with all required parameters
- Use new slash syntax for scoped keys (pgpSigner / skip instead of skip in pgpSigner)

* fix: Use computed status instead of status key in PackageSignerPlugin

* fix: Use withRevision instead of copy for ModuleID in build.sbt

- Add scala.sys.process._ import for shell command execution (! method)
- Fix resolvers setting to use new slash syntax and proper Option handling
- Fix publish/publishLocal to use {} instead of () to avoid deprecation warning
- Fix Classpaths.publishTask to use variant without delivery key (deprecated since 1.1.1)
- Add scala.sys.process._ import for shell command execution
- Fix publish/publishLocal to use {} instead of ()
- Remove problematic resolvers setting that caused task/setting dependency issues
- Use IvyActions.publish directly instead of deprecated Classpaths.publishTask
- Fix ModuleID.copy to use withRevision
- Fix Artifact.copy to use withExtension
- Use computed status value instead of status key

Build now compiles successfully with sbt 1.10.7.
**Problem/Solution**
This is a follow up to launcher package migrating to sbt 1.x.
This joins the launcher package into the main build.
@eed3si9n eed3si9n force-pushed the bport/launcher-package branch from 2a7300f to 622add0 Compare January 12, 2026 03:30
@eed3si9n eed3si9n merged commit b352eb1 into sbt:1.12.x Jan 12, 2026
10 checks passed
@eed3si9n eed3si9n deleted the bport/launcher-package branch January 12, 2026 03:56
@eed3si9n eed3si9n changed the title [1.x] bport: Upgrade launcher-package to sbt 1.10.7 [1.x] bport: Upgrade launcher-package from sbt 0.13 to 1.x Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants