Add DependencyResolutionInterface implementation in lm-coursier

Originally based on https://github.com/sbt/librarymanagement/pull/270
This commit is contained in:
Alexandre Archambault
2018-11-20 11:25:16 +01:00
parent 610bbf1113
commit 55f457a6f7
15 changed files with 793 additions and 3 deletions
+14 -1
View File
@@ -7,6 +7,10 @@ downloadInstallSbtExtras() {
chmod +x bin/sbt
}
lmCoursier() {
[ "${LM_COURSIER:-""}" = 1 ]
}
sbtPgpCoursier() {
[ "${SBT_PGP_COURSIER:-""}" = 1 ]
}
@@ -15,8 +19,15 @@ sbtShading() {
[ "${SBT_SHADING:-""}" = 1 ]
}
runLmCoursierTests() {
sbt ++$TRAVIS_SCALA_VERSION lm-coursier/test
}
runSbtCoursierTests() {
./metadata/scripts/with-test-repo.sh sbt ++$TRAVIS_SCALA_VERSION sbt-coursier/test "sbt-coursier/scripted sbt-coursier-group-$SBT_COURSIER_TEST_GROUP/*"
./metadata/scripts/with-test-repo.sh sbt \
++$TRAVIS_SCALA_VERSION \
sbt-coursier/test \
"sbt-coursier/scripted shared-$SBT_COURSIER_TEST_GROUP/* sbt-coursier-group-$SBT_COURSIER_TEST_GROUP/*"
}
runSbtShadingTests() {
@@ -41,6 +52,8 @@ if sbtShading; then
runSbtShadingTests
elif sbtPgpCoursier; then
runSbtPgpCoursierTests
elif lmCoursier; then
runLmCoursierTests
else
runSbtCoursierTests
fi