Commit 23d9732 1 parent 1cafa21 commit 23d9732 Copy full SHA for 23d9732
File tree 3 files changed +12
-2
lines changed
src/sbt-test/jlink/test-jlink-misc
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ libraryDependencies ++= Seq(
20
20
// for jdkpackager
21
21
" org.apache.ant" % " ant" % " 1.10.5" ,
22
22
// workaround for the command line size limit
23
- " com.github.eldis" % " tool-launcher" % " 0.2.1 " ,
23
+ " com.github.eldis" % " tool-launcher" % " 0.2.2 " ,
24
24
" org.scalatest" %% " scalatest" % " 3.0.5" % Test
25
25
)
26
26
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import scala.sys.process.Process
5
5
import com .typesafe .sbt .packager .Compat ._
6
6
7
7
val runChecks = taskKey[Unit ](" Run checks for a specific issue" )
8
+ val runFailingChecks = taskKey[Unit ](" Run checks for a specific issue, expecting them to fail" )
8
9
9
10
// Exclude Scala by default to simplify the test.
10
11
autoScalaLibrary in ThisBuild := false
@@ -80,3 +81,11 @@ val issue1266 = project
80
81
81
82
runChecks := jlinkBuildImage.value
82
83
)
84
+
85
+ // Should fail for invalid jlink inputs
86
+ val issue1284 = project
87
+ .enablePlugins(JlinkPlugin )
88
+ .settings(
89
+ jlinkModules := List (" no-such-module" ),
90
+ runFailingChecks := jlinkBuildImage.value
91
+ )
Original file line number Diff line number Diff line change 4
4
> issue1247BadAutoModuleName/runChecks
5
5
> issue1247ExternalModule/runChecks
6
6
> issue1247JakartaJavaModules/runChecks
7
- > issue1266/runChecks
7
+ > issue1266/runChecks
8
+ -> issue1284/runFailingChecks
You can’t perform that action at this time.
0 commit comments