Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix Maven Dependencies #67

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ jobs:
java-version: 1.8
- name: Build artifact
run: sbt clean universal:packageZipTarball
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Identify artifact
id: identify_artifact
run: ./identify_artifact.sh
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sbt test
- name: Publish artifact
uses: actions/upload-artifact@v2-preview
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ jobs:
java-version: 1.8
- name: Build artifact
run: sbt clean universal:packageZipTarball
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Identify artifact
id: identify_artifact
run: ./identify_artifact.sh
- name: Run tests
run: sbt test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish artifact
uses: actions/upload-artifact@v2-preview
if: success()
Expand Down
9 changes: 7 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ import sbtprotobuf.ProtobufPlugin
import scalariform.formatter.preferences._

credentials ++= loadM2Credentials(streams.value.log)
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"criteo-forks",
sys.env.get("GITHUB_TOKEN").get
)
resolvers ++= loadM2Resolvers(sLog.value)

resolvers += Resolver.sonatypeRepo("snapshots")
Expand Down Expand Up @@ -111,8 +117,7 @@ lazy val commonSettings = Seq(
Resolver.JCenterRepository,
"Typesafe Releases" at "https://repo.typesafe.com/typesafe/releases/",
"Apache Shapshots" at "https://repository.apache.org/content/repositories/snapshots/",
"Mesosphere Public Repo" at "https://downloads.mesosphere.com/maven",
"Mesosphere Snapshot Repo" at "https://downloads.mesosphere.com/maven-snapshot"
"Criteo Forks Marathon" at "https://maven.pkg.github.com/criteo-forks/marathon/"
),
cancelable in Global := true,
publishTo := Some(s3resolver.value(
Expand Down
Loading