Skip to content

Commit

Permalink
parallelize scripted
Browse files Browse the repository at this point in the history
scriptedBatchExecution effectively ignores custom build.properties, so this
takes a different approach to customizing the scripted based on sbt/JDK version
  • Loading branch information
bjaglin committed Apr 23, 2024
1 parent aa7033a commit 3f9b5be
Show file tree
Hide file tree
Showing 41 changed files with 11 additions and 9 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: coursier/setup-action@v1
with:
jvm: temurin:8
- run: rm -rf src/sbt-test/skip-sbt1.4
- run: sbt test scripted
jdk11:
name: JDK11 tests
Expand All @@ -22,6 +23,7 @@ jobs:
- uses: coursier/setup-action@v1
with:
jvm: temurin:11
- run: rm -rf src/sbt-test/skip-sbt1.4
- run: sbt test scripted
jdk17:
name: JDK17 tests
Expand All @@ -31,7 +33,10 @@ jobs:
- uses: coursier/setup-action@v1
with:
jvm: temurin:17
- run: sbt "test; scripted sbt-*/* skip-windows/*"
- run: rm -rf src/sbt-test/skip-sbt1.4
- run: rm -rf src/sbt-test/skip-java17+
- run: sbt test scripted

jdk21:
name: JDK21 tests
runs-on: ubuntu-latest
Expand All @@ -40,7 +45,8 @@ jobs:
- uses: coursier/setup-action@v1
with:
jvm: temurin:21
- run: sbt "test; scripted sbt-scalafix/* skip-windows/*"
- run: rm -rf src/sbt-test/skip-java17+
- run: sbt test scripted
windows:
name: Windows tests
runs-on: windows-latest
Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ scriptedSbt := {
if (jdk >= 21)
"1.9.0" // first release that supports JDK21
else
// https://github.com/sbt/sbt/commit/3b9b200
// 1.4.[0-2] force batch mode which is not compatible with custom build.properties
"1.4.3"
(pluginCrossBuild / sbtVersion).value
}

libraryDependencies += compilerPlugin(scalafixSemanticdb)
Expand All @@ -75,6 +73,8 @@ scalacOptions ++= List(
enablePlugins(ScriptedPlugin)
sbtPlugin := true
scriptedBufferLog := false
scriptedBatchExecution := true
scriptedParallelInstances := 4
scriptedLaunchOpts ++= Seq(
"-Xmx2048M",
s"-Dplugin.version=${version.value}",
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/sbt-test/sbt-1.5/scala-3/project/build.properties

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/sbt-test/sbt-1.5/testkit/project/build.properties

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3f9b5be

Please sign in to comment.