Apply suggestions from code review

Co-authored-by: Sebastian Stenzel <overheadhunter@users.noreply.github.com>
This commit is contained in:
Armin Schrenk 2022-04-20 10:31:25 +02:00
parent 51d715caa1
commit 4d1d6f449e
No known key found for this signature in database
GPG Key ID: 8F2992163CBBA7FC
9 changed files with 11 additions and 24 deletions

View File

@ -102,7 +102,7 @@ jobs:
env:
VERSION_NO: ${{ steps.versions.outputs.semVerNum }}
REVISION_NO: ${{ steps.versions.outputs.revNum }}
- name: Generate license
- name: Generate license for dmg
run: >
mvn -B license:add-third-party
-Dlicense.thirdPartyFilename=license.rtf
@ -111,7 +111,7 @@ jobs:
-Dlicense.includeScopes=compile
-Dlicense.excludedGroups=^org\.cryptomator
-Dlicense.failOnMissing=true
-Dlicense.licenseMergesUrl=dist/mac/dmg/resources/licenseMerges.xml
-Dlicense.licenseMergesUrl=license/merges.xml
- name: Install codesign certificate
run: |
# create variables

View File

@ -115,7 +115,7 @@ jobs:
timestampUrl: 'http://timestamp.digicert.com'
folder: appdir/Cryptomator
recursive: true
- name: Generate license
- name: Generate license for MSI
run: >
mvn -B license:add-third-party
-Dlicense.thirdPartyFilename=license.rtf
@ -124,7 +124,7 @@ jobs:
-Dlicense.includeScopes=compile
-Dlicense.excludedGroups=^org\.cryptomator
-Dlicense.failOnMissing=true
-Dlicense.licenseMergesUrl=dist/win/resources/license/licenseMerges.xml
-Dlicense.licenseMergesUrl=license/merges.xml
- name: Create MSI
run: >
${JAVA_HOME}/bin/jpackage
@ -205,7 +205,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
cache: 'maven'
- name: Generate license
- name: Generate license for exe
run: >
mvn -B license:add-third-party
-Dlicense.thirdPartyFilename=license.rtf
@ -214,7 +214,7 @@ jobs:
-Dlicense.includeScopes=compile
-Dlicense.excludedGroups=^org\.cryptomator
-Dlicense.failOnMissing=true
-Dlicense.licenseMergesUrl=dist/win/resources/license/licenseMerges.xml
-Dlicense.licenseMergesUrl=license/merges.xml
- name: Download WinFsp
run:
curl --output dist/win/bundle/resources/winfsp.msi -L ${{ env.WINFSP_MSI }}

View File

@ -83,7 +83,7 @@ mvn -B -f../../../pom.xml license:add-third-party \
-Dlicense.includeScopes=compile \
-Dlicense.excludedGroups=^org\.cryptomator \
-Dlicense.failOnMissing=true \
-Dlicense.licenseMergesUrl=resources/licenseMerges.xml
-Dlicense.licenseMergesUrl=../../../license/merges.xml
# codesign
if [ -n "${CODESIGN_IDENTITY}" ]; then

4
dist/win/build.ps1 vendored
View File

@ -88,7 +88,7 @@ if ($clean -and (Test-Path -Path $appPath)) {
"-Dlicense.includeScopes=compile" `
"-Dlicense.excludedGroups=^org\.cryptomator" `
"-Dlicense.failOnMissing=true" `
"-Dlicense.licenseMergesUrl=$buildDir\resources\licenseMerges.xml"
"-Dlicense.licenseMergesUrl=$buildDir\..\..\license\merges.xml"
# patch app dir
Copy-Item "contrib\*" -Destination "Cryptomator"
@ -128,7 +128,7 @@ $Env:JP_WIXWIZARD_RESOURCES = "$buildDir\resources"
"-Dlicense.includeScopes=compile" `
"-Dlicense.excludedGroups=^org\.cryptomator" `
"-Dlicense.failOnMissing=true" `
"-Dlicense.licenseMergesUrl=$buildDir\resources\licenseMerges.xml"
"-Dlicense.licenseMergesUrl=$buildDir\..\..\license\merges.xml"
# download Winfsp
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

View File

@ -1,7 +0,0 @@
<licenseMerges>
<licenseMerge>Apache License v2.0|Apache License, Version 2.0|The Apache Software License, Version 2.0|Apache 2.0|Apache Software License - Version 2.0</licenseMerge>
<licenseMerge>MIT License|The MIT License (MIT)|The MIT License|MIT license</licenseMerge>
<licenseMerge>LGPL 2.1|LGPL, version 2.1|GNU Lesser/Library General Public License version 2|GNU Lesser General Public License Version 2.1</licenseMerge>
<licenseMerge>GPLv2|GNU General Public License Version 2</licenseMerge>
<licenseMerge>GPLv2+CE|CDDL + GPLv2 with classpath exception</licenseMerge>
</licenseMerges>

10
pom.xml
View File

@ -359,14 +359,8 @@
<thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
<includedScopes>compile</includedScopes>
<excludedGroups>org\.cryptomator</excludedGroups>
<licenseMerges>
<licenseMerge>Apache License v2.0|Apache License, Version 2.0|The Apache Software License, Version 2.0|Apache 2.0|Apache Software License - Version 2.0</licenseMerge>
<licenseMerge>MIT License|The MIT License (MIT)|The MIT License|MIT license</licenseMerge>
<licenseMerge>LGPL 2.1|LGPL, version 2.1|GNU Lesser/Library General Public License version 2|GNU Lesser General Public License Version 2.1</licenseMerge>
<licenseMerge>GPLv2|GNU General Public License Version 2</licenseMerge>
<licenseMerge>GPLv2+CE|CDDL + GPLv2 with classpath exception</licenseMerge>
</licenseMerges>
<fileTemplate>${project.basedir}/src/license/template.ftl</fileTemplate>
<licenseMergesUrl>${project.basedir}/license/merges.xml</licenseMergesUrl>
<fileTemplate>${project.basedir}/license/template.ftl</fileTemplate>
</configuration>
</execution>
</executions>