Skip to content

Commit

Permalink
[HOTFIX] Update maven repo url to use https
Browse files Browse the repository at this point in the history
  • Loading branch information
lresende committed Feb 11, 2020
1 parent 4dc1f7c commit a389294
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions etc/tools/check-licenses
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

acquire_rat_jar () {

URL="http://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"
URL="https://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"

JAR="$rat_jar"

Expand Down Expand Up @@ -82,4 +82,4 @@ if test ! -z "$ERRORS"; then
exit 1
else
echo -e "RAT checks passed."
fi
fi
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AddJarSpec extends FunSpec with Matchers with MockitoSugar {
override val config = testConfig
}

addJarMagic.execute("""http://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")
addJarMagic.execute("""https://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")

verify(mockKernel).addJars(any[URI])
verify(mockPluginManager, times(0)).loadPlugins(any())
Expand Down Expand Up @@ -133,7 +133,7 @@ class AddJarSpec extends FunSpec with Matchers with MockitoSugar {
}
}

addJarMagic.execute("""http://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")
addJarMagic.execute("""https://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")

downloadFileCalled should be (false)
verify(mockKernel).addJars(any[URI])
Expand All @@ -160,7 +160,7 @@ class AddJarSpec extends FunSpec with Matchers with MockitoSugar {
}
}

addJarMagic.execute("""-f http://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")
addJarMagic.execute("""-f https://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")

downloadFileCalled should be (true)
verify(mockKernel).addJars(any[URI])
Expand All @@ -185,7 +185,7 @@ class AddJarSpec extends FunSpec with Matchers with MockitoSugar {
}

addJarMagic.execute(
"""--magic http://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")
"""--magic https://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar""")

verify(mockPluginManager).loadPlugins(any())
verify(mockSparkContext, times(0)).addJar(anyString())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class AddExternalJarMagicSpecForIntegration
}

ignore("should support Scala jars") {
val locationURL = "http://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar"
val locationURL = "https://repo1.maven.org/maven2/org/scala-rules/rule-engine-core_2.11/0.5.1/rule-engine-core_2.11-0.5.1.jar"
val testJarUrl = JarUtils.downloadJar(tempdir.toString, locationURL)

// Should fail since jar was not added to paths
Expand Down

0 comments on commit a389294

Please sign in to comment.