mirror of https://github.com/sbt/sbt.git
Merge pull request #7677 from eed3si9n/wip/delete-ivy-test
[2.x] refactor: Delete Ivy-related test
This commit is contained in:
commit
ac0edfc6bb
|
|
@ -1,31 +0,0 @@
|
||||||
ThisBuild / turbo := true
|
|
||||||
ThisBuild / scalaVersion := "2.12.17"
|
|
||||||
|
|
||||||
import java.nio.file.Files
|
|
||||||
import java.nio.file.attribute.FileTime
|
|
||||||
import scala.jdk.CollectionConverters.*
|
|
||||||
val rewriteIvy = inputKey[Unit]("Rewrite ivy directory")
|
|
||||||
|
|
||||||
ThisBuild / useCoursier := false
|
|
||||||
|
|
||||||
val snapshot = (project in file(".")).settings(
|
|
||||||
name := "akka-test",
|
|
||||||
scalaVersion := "2.12.19",
|
|
||||||
libraryDependencies ++= Seq(
|
|
||||||
"com.lihaoyi" %% "utest" % "0.6.6" % "test"
|
|
||||||
),
|
|
||||||
testFrameworks += TestFramework("utest.runner.Framework"),
|
|
||||||
resolvers += "Local Maven" at file("ivy").toURI.toURL.toString,
|
|
||||||
libraryDependencies += "sbt" %% "foo-lib" % "0.1.0-SNAPSHOT",
|
|
||||||
rewriteIvy := {
|
|
||||||
val dir = Def.spaceDelimited().parsed.head
|
|
||||||
sbt.IO.delete(baseDirectory.value / "ivy")
|
|
||||||
sbt.IO.copyDirectory(
|
|
||||||
baseDirectory.value / s"libraries/library-$dir/ivy",
|
|
||||||
baseDirectory.value / "ivy"
|
|
||||||
)
|
|
||||||
Files.walk(file("ivy").getCanonicalFile.toPath).iterator.asScala.foreach { f =>
|
|
||||||
Files.setLastModifiedTime(f, FileTime.fromMillis(System.currentTimeMillis + 3000))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
name := "foo-lib"
|
|
||||||
|
|
||||||
organization := "sbt"
|
|
||||||
|
|
||||||
publishTo := Some(Resolver.file("test-resolver", file("").getCanonicalFile / "ivy"))
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
397429ea4a937c9ad21268ac7f294c9b
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
183362cade58c89ae813465e7c509a3346515e39
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
9c46dbde2cd9c996c37c7ba4461eec7c
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
b5725ff80281d86491166550058b56c6b0b7dd2d
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
c39385e52b24880f549e1c01642ed010
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
de497479331da6c5dff72b6c1cfa5fca1634933f
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
|
||||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>sbt</groupId>
|
|
||||||
<artifactId>foo-lib_2.12</artifactId>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<description>foo-lib</description>
|
|
||||||
<version>0.1.0-SNAPSHOT</version>
|
|
||||||
<name>foo-lib</name>
|
|
||||||
<organization>
|
|
||||||
<name>sbt</name>
|
|
||||||
</organization>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.scala-lang</groupId>
|
|
||||||
<artifactId>scala-library</artifactId>
|
|
||||||
<version>2.12.19</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
ada0c2e0276459449bf25a4f99aab3f6
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
466216207d16d3e0daf0b2b18e67b20882f7f1b5
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
sbt.version=1.2.6
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
package sbt
|
|
||||||
|
|
||||||
object Foo {
|
|
||||||
def x: Int = 1
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
name := "foo-lib"
|
|
||||||
|
|
||||||
organization := "sbt"
|
|
||||||
|
|
||||||
publishTo := Some(Resolver.file("test-resolver", file("").getCanonicalFile / "ivy"))
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
260c1aab64032676c2c5b7d3c2a8e385
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
44c78fcc5a2918bc4b33afb7419ac9d643bbac26
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
39c7358e50708bc3da53ffe34eb876d6
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
64e078d3fed51c0ef3d8abdb096ab1406e44ee1c
|
|
||||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
763822fba242624131cf0706be56dabf
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
22192abf4b52e85b9f979aa883ab42ce33bc51cd
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
|
||||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>sbt</groupId>
|
|
||||||
<artifactId>foo-lib_2.12</artifactId>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<description>foo-lib</description>
|
|
||||||
<version>0.1.0-SNAPSHOT</version>
|
|
||||||
<name>foo-lib</name>
|
|
||||||
<organization>
|
|
||||||
<name>sbt</name>
|
|
||||||
</organization>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.scala-lang</groupId>
|
|
||||||
<artifactId>scala-library</artifactId>
|
|
||||||
<version>2.12.19</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
ada0c2e0276459449bf25a4f99aab3f6
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
466216207d16d3e0daf0b2b18e67b20882f7f1b5
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
sbt.version=1.2.6
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
package sbt
|
|
||||||
|
|
||||||
object Foo {
|
|
||||||
def x: Int = 2
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package sbt
|
|
||||||
|
|
||||||
import utest._
|
|
||||||
|
|
||||||
object SnapshotTest extends TestSuite {
|
|
||||||
val tests: Tests = Tests {
|
|
||||||
'foo - {
|
|
||||||
com.swoval.Foo.x ==> 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
> rewriteIvy 1
|
|
||||||
# If the ClassLoaderCache is not correctly set up, then the sbt testing framework fails to work correctly
|
|
||||||
> test
|
|
||||||
> rewriteIvy 2
|
|
||||||
-> test
|
|
||||||
Loading…
Reference in New Issue