Skip to content

Commit 06cc617

Browse files
authored
Merge pull request #509 from eed3si9n/wip/22-ea
Update to Jar Jar Abrams 1.13.0
2 parents 3419341 + c550039 commit 06cc617

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,23 @@ jobs:
4040
shell: bash
4141
run: |
4242
sbt -v clean scripted
43+
44+
ea-test:
45+
runs-on: ubuntu-latest
46+
env:
47+
# define Java options for both official sbt and sbt-extras
48+
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
49+
JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
50+
steps:
51+
- uses: actions/checkout@v4
52+
- name: Setup JDK
53+
uses: actions/setup-java@v3
54+
with:
55+
java-version: 22-ea
56+
distribution: temurin
57+
jdkFile: https://download.java.net/java/early_access/jdk22/20/GPL/openjdk-22-ea+20_linux-x64_bin.tar.gz
58+
cache: sbt
59+
- name: Build and test
60+
shell: bash
61+
run: |
62+
sbt -v clean scripted

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lazy val root = (project in file("."))
1717
name := "sbt-assembly"
1818
scalacOptions := Seq("-deprecation", "-unchecked", "-Dscalac.patmat.analysisBudget=1024", "-Xfuture")
1919
libraryDependencies ++= Seq(
20-
"com.eed3si9n.jarjarabrams" %% "jarjar-abrams-core" % "1.9.0",
20+
"com.eed3si9n.jarjarabrams" %% "jarjar-abrams-core" % "1.13.0",
2121
)
2222
(pluginCrossBuild / sbtVersion) := {
2323
scalaBinaryVersion.value match {

src/main/scala/sbtassembly/Assembly.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,11 @@ object Assembly {
488488
if (shadeRules.isEmpty)
489489
(name: String, inputStream: LazyInputStream) => Some(name -> inputStream)
490490
else {
491-
val bytecodeShader = Shader.bytecodeShader(shadeRules, verbose = false)
491+
val bytecodeShader = Shader.bytecodeShader(
492+
shadeRules,
493+
verbose = false,
494+
skipManifest = false,
495+
)
492496
(name: String, inputStream: LazyInputStream) => {
493497
val is = inputStream()
494498
val shadeResult = bytecodeShader(Streamable.bytes(is), name)

0 commit comments

Comments
 (0)