Brought license-detector GH action in line with license-feeder.
@@ -29,13 +29,19 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup JDK 11
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
- java-version: 1.11
+ java-version: 11
+ distribution: 'temurin'
+ server-id: github # Value of distributionManagement/repository/id
+ settings-path: ${{ github.workspace }} # location of settings.xml
- name: Build jar # This includes integration tests # FIXME Skipping https://github.com/fasten-project/fasten/issues/293
#run: mvn clean install --projects server,:license-detector --also-make -Dtest=\!MergerEfficiencyTests#localMergerEfficiencyTest
#run : mvn clean install -pl analyzer/license-detector/
- run: mvn -B -ntp clean install
+ run: mvn -B -ntp clean install -s ${{ github.workspace }}/settings.xml
+ env:
+ # auth necessary to access GitHub Maven registries
+ GITHUB_TOKEN: ${{ github.token }}
- name: Build image # JARs are not generated by this docker build target, but by the previous CI step
run: DOCKER_BUILDKIT=1 docker build --tag $IMAGE_NAME --file docker/license-detector/Dockerfile --target package-ci .
- name: Log into registry
