GUACAMOLE-773: Allow automatic license generation to consider multiple dependency lists, not necessarily from Maven.

This commit is contained in:
Michael Jumper
2021-04-22 14:37:41 -07:00
parent 9131fdbbfb
commit e119ba459b
72 changed files with 39 additions and 31 deletions

12
pom.xml
View File

@@ -46,6 +46,10 @@
<logback.version>1.2.3</logback.version>
<slf4j.version>1.7.30</slf4j.version>
<!-- The directory that should receive all generated dependency lists
(for LICENSE generation) -->
<dependency.list.directory>${project.build.directory}/dependencies</dependency.list.directory>
<!-- Set to "true" to ignore errors that occur during automatic LICENSE
file generation (such as non-existent license documentation) as
well as errors that occur during the RAT check (such as incorrect
@@ -126,20 +130,20 @@
</executions>
</plugin>
<!-- Automatically generate list of runtime dependencies -->
<!-- Automatically generate list of Maven runtime dependencies -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>list-runtime-dependencies</id>
<id>list-maven-runtime-dependencies</id>
<phase>generate-resources</phase>
<configuration>
<includeScope>runtime</includeScope>
<excludeReactor>false</excludeReactor>
<excludeGroupIds>org.apache.guacamole</excludeGroupIds>
<outputFile>${project.build.directory}/runtime-dependencies.txt</outputFile>
<outputFile>${dependency.list.directory}/maven-runtime-dependencies.txt</outputFile>
</configuration>
<goals>
<goal>list</goal>
@@ -205,7 +209,7 @@
<configuration>
<executable>${rootlocation}/doc/licenses/generate-license-files.sh</executable>
<arguments>
<argument>${project.build.directory}/runtime-dependencies.txt</argument>
<argument>${dependency.list.directory}</argument>
<argument>${project.build.directory}/licenses</argument>
</arguments>
<environmentVariables>