diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index e3707ec..7440603 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -48,6 +48,7 @@ jobs:
mvn --no-transfer-progress -DskipTests clean package
- name: Publish to the Maven Central Repository
+ if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
run: |
mvn --no-transfer-progress --batch-mode deploy
env:
@@ -58,17 +59,9 @@ jobs:
- name: Cache Jars
uses: actions/upload-artifact@v4
with:
- name: scanoss-jars
+ name: scanoss-jars-maven
path: ./target/*.jar
-# - name: Release
-# uses: softprops/action-gh-release@v1
-# with:
-# draft: true
-# files: |
-# target/*.jar
-# scanoss-cli.sh
-
# Build all the native binaries for the given OSes
build_native:
if: success()
@@ -77,7 +70,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ubuntu-latest, macos-11, windows-latest]
+ os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
@@ -137,16 +130,25 @@ jobs:
if: runner.os != 'Windows'
uses: actions/upload-artifact@v4
with:
- name: scanoss-jars
+ name: scanoss-jars-${{ matrix.os }}
path: ./target/scanoss-java-${{ matrix.os }}
- name: Cache ${{ matrix.os }} Binary Windows
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
- name: scanoss-jars
+ name: scanoss-jars-${{ matrix.os }}
path: ./target/scanoss-java-${{ matrix.os }}.exe
-
+
+ merge:
+ runs-on: ubuntu-latest
+ needs: [build_jars, build_native]
+ steps:
+ - name: Merge artifacts
+ uses: actions/upload-artifact/merge@v4
+ with:
+ name: scanoss-jars
+ pattern: scanoss-jars-*
# Upload all the jars and binaries a GH Release
create_release:
@@ -160,7 +162,8 @@ jobs:
- name: Download Cached artifacts
uses: actions/download-artifact@v4
with:
- name: scanoss-jars
+ pattern: scanoss-jars-*
+ merge-multiple: true
path: target
- name: List Packages
@@ -168,12 +171,13 @@ jobs:
run: |
ls -la target/
- # Only create a release if we have a tagged push
- - name: Release ${{ github.ref_type }} - ${{ github.ref_name }}
+ - name: GH Release ${{ github.ref_type }} - ${{ github.ref_name }}
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
- uses: softprops/action-gh-release@v1
- with:
- draft: true
- files: |
- target/*
- scanoss-cli.sh
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ gh release create ${{github.ref_name}} \
+ --draft \
+ --repo ${{ github.server_url }}/${{ github.repository }} \
+ --generate-notes \
+ target/* scanoss-cli.sh
diff --git a/pom.xml b/pom.xml
index 2c7b0f1..9eb0af6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,11 +44,6 @@
-
-
-
-
-
ossrh
Maven Central Snapshot Repo
@@ -62,58 +57,36 @@
-
- junit
- junit
- 4.13.2
- test
-
-
- com.squareup.okhttp3
- mockwebserver
- 4.12.0
- test
-
-
- org.projectlombok
- lombok
- 1.18.36
- true
-
+
com.squareup.okhttp3
okhttp
4.12.0
+ compile
com.squareup.okhttp3
okhttp-tls
4.12.0
+ compile
commons-codec
commons-codec
1.17.1
+ compile
org.slf4j
slf4j-api
${slf4jVersion}
-
-
- org.slf4j
- slf4j-simple
- ${slf4jVersion}
+ compile
org.apache.tika
tika-core
2.9.2
-
-
- info.picocli
- picocli
- 4.7.6
+ compile
com.google.code.gson
@@ -125,6 +98,42 @@
com.github.package-url
packageurl-java
1.5.0
+ compile
+
+
+ info.picocli
+ picocli
+ 4.7.6
+ true
+ compile
+
+
+ org.projectlombok
+ lombok
+ 1.18.36
+ true
+ compile
+
+
+
+
+
+ org.slf4j
+ slf4j-simple
+ ${slf4jVersion}
+ runtime
+
+
+ junit
+ junit
+ 4.13.2
+ test
+
+
+ com.squareup.okhttp3
+ mockwebserver
+ 4.12.0
+ test
@@ -172,34 +181,6 @@
-
- without-slf4j
- package
-
- single
-
-
-
-
- with-dependencies-exclude-slf4j-simple
-
- jar
-
- false
-
-
- /
- true
- true
-
- org.slf4j:slf4j-simple
-
-
-
-
-
-
-
@@ -283,12 +264,9 @@
-H:+ReportExceptionStackTraces
-H:ReflectionConfigurationFiles=../config/reflect-config.json
-H:ResourceConfigurationFiles=../config/resource-config.json
-
--verbose
--no-fallback
-march=native
-
-