Ver código fonte

Fixed wrong file format and url of lcense merge file

Armin Schrenk 2 anos atrás
pai
commit
bff0194f3e

+ 1 - 1
.github/workflows/mac-dmg.yml

@@ -111,7 +111,7 @@ jobs:
           -Dlicense.includeScopes=compile
           -Dlicense.excludedGroups=^org\.cryptomator
           -Dlicense.failOnMissing=true
-          -Dlicense.licenseMergesUrl=license/merges.xml
+          -Dlicense.licenseMergesUrl=file:///license/merges
       - name: Install codesign certificate
         run: |
           # create variables

+ 2 - 2
.github/workflows/win-exe.yml

@@ -124,7 +124,7 @@ jobs:
           -Dlicense.includeScopes=compile
           -Dlicense.excludedGroups=^org\.cryptomator
           -Dlicense.failOnMissing=true
-          -Dlicense.licenseMergesUrl=license/merges.xml
+          -Dlicense.licenseMergesUrl=file:///license/merges
       - name: Create MSI
         run: >
           ${JAVA_HOME}/bin/jpackage
@@ -214,7 +214,7 @@ jobs:
           -Dlicense.includeScopes=compile
           -Dlicense.excludedGroups=^org\.cryptomator
           -Dlicense.failOnMissing=true
-          -Dlicense.licenseMergesUrl=license/merges.xml
+          -Dlicense.licenseMergesUrl=file:///license/merges
       - name: Download WinFsp
         run:
           curl --output dist/win/bundle/resources/winfsp.msi -L ${{ env.WINFSP_MSI }}

+ 1 - 1
dist/mac/dmg/build.sh

@@ -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=../../../license/merges.xml
+    -Dlicense.licenseMergesUrl=file:///../../../license/merges
 
 # codesign
 if [ -n "${CODESIGN_IDENTITY}" ]; then

+ 2 - 2
dist/win/build.ps1

@@ -88,7 +88,7 @@ if ($clean -and (Test-Path -Path $appPath)) {
  "-Dlicense.includeScopes=compile" `
  "-Dlicense.excludedGroups=^org\.cryptomator" `
  "-Dlicense.failOnMissing=true" `
- "-Dlicense.licenseMergesUrl=$buildDir\..\..\license\merges.xml"
+ "-Dlicense.licenseMergesUrl=file:///$buildDir/../../license/merges"
 
 # 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\..\..\license\merges.xml"
+ "-Dlicense.licenseMergesUrl=file:///$buildDir/../../license/merges"
 
 # download Winfsp
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

+ 7 - 0
license/merges

@@ -0,0 +1,7 @@
+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|Apache-2.0
+MIT License|The MIT License (MIT)|The MIT License|MIT license
+LGPL 2.1|LGPL, version 2.1|GNU Lesser/Library General Public License version 2|GNU Lesser General Public License Version 2.1
+GPLv2|GNU General Public License Version 2
+GPLv2+CE|CDDL + GPLv2 with classpath exception
+Eclipse Public License - Version 1.0|Eclipse Public License - v 1.0
+Eclipse Public License - Version 2.0|Eclipse Public License - v 2.0

+ 0 - 7
license/merges.xml

@@ -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>

+ 1 - 1
pom.xml

@@ -359,7 +359,7 @@
 							<thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
 							<includedScopes>compile</includedScopes>
 							<excludedGroups>org\.cryptomator</excludedGroups>
-							<licenseMergesUrl>${project.basedir}/license/merges.xml</licenseMergesUrl>
+							<licenseMergesUrl>file:///${project.basedir}/license/merges</licenseMergesUrl>
 							<fileTemplate>${project.basedir}/license/template.ftl</fileTemplate>
 						</configuration>
 					</execution>