Skip to content

fix building collector with java 21 #534

fix building collector with java 21

fix building collector with java 21 #534

Workflow file for this run

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