Skip to content

Commit

Permalink
Add 'test.' aliases corresponding to the directive name
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejG604 committed Sep 27, 2023
1 parent f8c3a32 commit d8399b7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ final case class CustomJar(
@DirectiveName("source.jars")
sourcesJar: DirectiveValueParser.WithScopePath[List[Positioned[String]]] =
DirectiveValueParser.WithScopePath.empty(Nil),
@DirectiveName("test.sourcesJar")
@DirectiveName("test.sources.jar")
@DirectiveName("test.sourcesJars")
@DirectiveName("test.sources.jars")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ final case class Dependency(
@DirectiveName("deps")
@DirectiveName("dependencies")
dependency: List[Positioned[String]] = Nil,
@DirectiveName("test.dependency")
@DirectiveName("test.dep")
@DirectiveName("test.deps")
@DirectiveName("test.dependencies")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import scala.cli.commands.SpecificationLevel
final case class JavaOptions(
@DirectiveName("javaOpt")
javaOptions: List[Positioned[String]] = Nil,
@DirectiveName("test.javaOptions")
@DirectiveName("test.javaOpt")
testJavaOptions: List[Positioned[String]] = Nil
) extends HasBuildOptionsWithRequirements {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import scala.cli.commands.SpecificationLevel
final case class JavaProps(
@DirectiveName("javaProp")
javaProperty: List[Positioned[String]] = Nil,
@DirectiveName("test.javaProperty")
@DirectiveName("test.javaProp")
testJavaProperty: List[Positioned[String]] = Nil
) extends HasBuildOptionsWithRequirements {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import scala.cli.commands.SpecificationLevel
final case class JavacOptions(
@DirectiveName("javacOpt")
javacOptions: List[Positioned[String]] = Nil,
@DirectiveName("test.javacOptions")
@DirectiveName("test.javacOpt")
testJavacOptions: List[Positioned[String]] = Nil
) extends HasBuildOptionsWithRequirements {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ final case class Resources(
resourceDirs: DirectiveValueParser.WithScopePath[List[Positioned[String]]] =
DirectiveValueParser.WithScopePath.empty(Nil),
@DirectiveName("test.resourceDir")
@DirectiveName("test.resourceDirs")
testResourceDirs: DirectiveValueParser.WithScopePath[List[Positioned[String]]] =
DirectiveValueParser.WithScopePath.empty(Nil)
) extends HasBuildOptionsWithRequirements {
Expand Down

0 comments on commit d8399b7

Please sign in to comment.