Skip to content

Commit 4232a10

Browse files
authored
Merge pull request #464 from dwijnand/build/sync-App-and-Test
build: Sync the setup of App & Test more
2 parents a1e8e2a + 3e2e648 commit 4232a10

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

project/TestsPlugin.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,14 @@ object TestsPlugin extends AutoPlugin {
135135
scalaVersion := testScalaVersion.value,
136136
inConfig(V1)(funTestPerConfigSettings),
137137
inConfig(V2)(funTestPerConfigSettings),
138-
inConfig(App)(funTestPerConfigSettings),
138+
inConfig(App)(Def.settings(
139+
funTestPerConfigSettings,
140+
run / trapExit := false,
141+
)),
139142
inConfig(Test)(Def.settings(
140143
internalDependencyClasspath ++= (V2 / exportedProducts).value,
141144
internalDependencyClasspath ++= (App / exportedProducts).value,
142-
run / mainClass := Some("App"),
145+
run / mainClass := (App / run / mainClass).value,
143146
run / trapExit := false,
144147
)),
145148
Global / onLoad += oracleFileCheck.value,

0 commit comments

Comments
 (0)