new file: projects/sonarqube.org/sonarscanner/package.yml

This commit is contained in:
Andrii Riabchenko 2024-01-21 11:54:02 +02:00 committed by Jacob Heider
parent da432e2e5c
commit 1ecfb80139

View file

@ -0,0 +1,30 @@
distributable:
url: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-{{version.tag}}.zip
versions:
github: SonarSource/sonar-scanner-cli
warnings:
- vendored
dependencies:
openjdk.org: ^20
build:
working-directory: sonar-scanner-{{version.tag}}
script:
- rm -rf bin/*.bat
- run: mkdir -p bin libexec
working-directory: ${{prefix}}
- cp -r ./* {{prefix}}/libexec/
- run: |
ln -s ../libexec/bin/sonar-scanner sonar-scanner
ln -s ../libexec/bin/sonar-scanner-debug sonar-scanner-debug
working-directory: ${{prefix}}/bin
provides:
- bin/sonar-scanner
- bin/sonar-scanner-debug
test:
- sonar-scanner --version | grep {{version}}