fix building collector with java 21 #534
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 21 | |
distribution: adopt | |
- name: Install sbt | |
uses: sbt/setup-sbt@v1 | |
- name: Publish collector locally | |
run: | | |
git clone --branch 3.4.0 --depth 1 https://github.com/snowplow/stream-collector.git | |
cd stream-collector | |
echo '1.11.0' > project/build.properties # temporary fix until collector uses java 21 | |
sbt 'project core; set version := "3.4.0; set scalaVersion := "2.12.20"'; publishLocal' | |
- name: Run sbt | |
run: sbt test |