Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 9f4e708

Browse files
committed
Make ant a provided dependency
Ant is only needed to compile the Partest ant task. At runtime, the task is run by the Ant runner, so ant.jar and friends are already provided. In the scala build, this removes ant from the compile classpath of partest-extras, and from the runtime classpath of test.junit and the `test/partest` script. Nothing in partest other than the task depends on Ant, so there is no need to explicitly provide ant anywhere. Both `ant test.run` and `test/partest` should work fine with this change. The motivation for this is to prevent ant from appearing several time on the classpath, see [1]. [1]: https://groups.google.com/d/topic/scala-internals/EuMX5xu347o/discussion
1 parent 95db2b1 commit 9f4e708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ scalacOptions in (Compile, compile) ++= Seq("-optimize", "-feature", "-deprecati
3131

3232
// dependencies
3333
// versions involved in integration builds / that change frequently should be keys, set above!
34-
libraryDependencies += "org.apache.ant" % "ant" % "1.8.4"
34+
libraryDependencies += "org.apache.ant" % "ant" % "1.8.4" % "provided"
3535

3636
libraryDependencies += "com.googlecode.java-diff-utils" % "diffutils" % "1.3.0"
3737

0 commit comments

Comments
 (0)