Skip to content

Commit

Permalink
[SPARK-48251][BUILD] Disable maven local cache on GA's step `MIMA t…
Browse files Browse the repository at this point in the history
…est`
  • Loading branch information
panbingkun committed May 13, 2024
1 parent acc3753 commit f6d99bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ jobs:
- name: Dependencies test
run: ./dev/test-dependencies.sh
- name: MIMA test
env:
SKIP_LOCAL_M2: true
run: ./dev/mima
- name: Scala linter
run: ./dev/lint-scala
Expand Down
7 changes: 3 additions & 4 deletions project/SparkBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,9 @@ object SparkBuild extends PomBuild {
// Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central.
// See https://storage-download.googleapis.com/maven-central/index.html for more info.
"gcs-maven-central-mirror" at "https://maven-central.storage-download.googleapis.com/maven2/",
DefaultMavenRepository,
Resolver.mavenLocal,
Resolver.file("ivyLocal", file(Path.userHome.absolutePath + "/.ivy2/local"))(Resolver.ivyStylePatterns)
),
DefaultMavenRepository) ++
{ if (sys.env.contains("SKIP_LOCAL_M2")) Nil else Seq(Resolver.mavenLocal) } :+
Resolver.file("ivyLocal", file(Path.userHome.absolutePath + "/.ivy2/local"))(Resolver.ivyStylePatterns),
externalResolvers := resolvers.value,
otherResolvers := SbtPomKeys.mvnLocalRepository(dotM2 => Seq(Resolver.file("dotM2", dotM2))).value,
(MavenCompile / publishLocalConfiguration) := PublishConfiguration()
Expand Down

0 comments on commit f6d99bb

Please sign in to comment.