Skip to content

Commit

Permalink
Update metafacture dependencies (#24)
Browse files Browse the repository at this point in the history
- pin antlr-runtime to 3.2.
- use cache in github actions

This makes the build sucessful again.
  • Loading branch information
dr0i committed Nov 24, 2022
1 parent 2dc92cc commit e4f76b3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,29 @@ name: Build

on:
push

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install metafacture-fix
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Install metafacture-core-5.4.1-rc3
run: |
git clone https://github.com/metafacture/metafacture-core.git
cd metafacture-core
git checkout -b metafacture-core-5.4.1-rc3
./gradlew publishToMavenLocal
cd ..
- name: Install metafacture-fix snapshot
run: |
git clone https://github.com/metafacture/metafacture-fix.git
cd metafacture-fix
Expand Down
18 changes: 11 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ libraryDependencies ++= Seq(
cache,
javaWs,
"com.typesafe.play" % "play-test_2.11" % "2.4.11",
"org.metafacture" % "metafacture-elasticsearch" % "5.3.1",
"org.metafacture" % "metafacture-io" % "5.3.1",
"org.metafacture" % "metafacture-strings" % "5.3.1",
"org.metafacture" % "metafacture-json" % "5.3.1",
"org.metafacture" % "metafacture-flux" % "5.3.1",
"org.metafacture" % "metafacture-triples" % "5.3.1",
"org.metafacture" % "metafacture-formatting" % "5.3.1",
"org.metafacture" % "metafacture-elasticsearch" % "metafacture-core-5.4.1-rc3",
"org.metafacture" % "metafacture-io" % "metafacture-core-5.4.1-rc3",
"org.metafacture" % "metafacture-strings" % "metafacture-core-5.4.1-rc3",
"org.metafacture" % "metafacture-json" % "metafacture-core-5.4.1-rc3",
"org.metafacture" % "metafacture-flux" % "metafacture-core-5.4.1-rc3",
"org.metafacture" % "metafacture-triples" % "metafacture-core-5.4.1-rc3",
"org.metafacture" % "metafacture-formatting" % "metafacture-core-5.4.1-rc3",
"org.eclipse.emf" % "org.eclipse.emf.common" % "2.24.0",
"org.metafacture" % "metafix" % "0.4.0-SNAPSHOT" exclude("org.eclipse.emf", "org.eclipse.emf.common"),
"org.elasticsearch" % "elasticsearch" % "1.7.5" withSources(),
Expand All @@ -30,6 +30,10 @@ libraryDependencies ++= Seq(
"org.mockito" % "mockito-junit-jupiter" % "2.27.0" % "test"
)

dependencyOverrides ++= Set(
"org.antlr" % "antlr-runtime" % "3.2"
)

lazy val root = (project in file(".")).enablePlugins(PlayJava)

javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
Expand Down

0 comments on commit e4f76b3

Please sign in to comment.