Migrate to sbt 2.0; bump multiarch-core 0.3.0 + sbt-kubuszok 0.2.3 - #9
Merged
Conversation
- project/plugins.sbt: multiarch-core 0.2.0 -> 0.3.0, sbt-kubuszok 0.2.1 -> 0.2.3 - project/build.properties: sbt.version 1.12.11 -> 2.0.0 - build.sbt: packageBin mappings are now keyed by xsbti.HashedVirtualFileRef in sbt 2.0; convert each File via fileConverter.toVirtualFile in fatJarMappings and in the inline queries/wasm mapping blocks - build.sbt: drop sbt-welcome usage (logo/usefulTasks); the plugin is no longer bundled by sbt-kubuszok 0.2.3 on sbt 2.0 Resource-only build; packageBin verified to still emit native/<classifier>/<file>, queries/<lang>/*.scm and wasm/* mappings intact.
MateuszKubuszok
force-pushed
the
feat/sbt2-migration
branch
from
June 21, 2026 05:09
79a9edb to
3cca0dc
Compare
sbt 2.0 writes packageBin output to target/out/jvm/u/<name>/<name>-<ver>.jar at the build root, not providers/<name>/target as in sbt 1.x. The verify script's find pointed at the non-existent providers/<name>/target dir; under set -o pipefail the failing find aborted the whole script (exit 1). Point each lookup at target/out/jvm/u/<name> and pick the newest jar.
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.
Resource-only native-provider repo migrated to the new tooling.
Changes
project/plugins.sbt: multiarch-core0.2.0->0.3.0, sbt-kubuszok0.2.1->0.2.3project/build.properties:sbt.version1.12.11->2.0.0build.sbt: sbt 2.0 packageBin mappings are keyed byxsbti.HashedVirtualFileRef; eachFileis now converted viafileConverter.toVirtualFile(f.toPath)infatJarMappingsand in the inlinequeries/wasmmapping blocksbuild.sbt: droppedsbt-welcomeusage (logo/usefulTasks+ import) — no longer bundled by sbt-kubuszok 0.2.3 on sbt 2.0No
sbt-projectmatrixplugin to remove (was never used). CI already on JDK 25 (zulu).Verification (
sbt --client, sbt 2.0.0)reload; compile-> successpackageBin-> all 4 provider JARs built; mappings intact:native/<classifier>/<file>across all 6 platform classifiers (real tree-sitter binaries)queries/<lang>/*.scm(179.scmfiles)wasm/web-tree-sitter.{js,wasm}+wasm/grammars/*.wasmSame native-binary artifacts as before: mapping path schemes and file-selection filters are unchanged; only the
File->VirtualFileRefkey conversion required by sbt 2.0 was added.Do not merge/tag/release.