New licensing module (#2403)

* New licensing module to contain licensing info and HELIDON_THIRD_PARTY_LICENSES.xml
* Add third-party-license-report execution to helidon-maven-plugin
This commit is contained in:
Joe DiPol
2020-10-13 16:12:39 -07:00
committed by GitHub
parent bde9564a60
commit eb2115dc16
7 changed files with 151 additions and 1 deletions

View File

@@ -21,7 +21,10 @@ Third Party Dependencies
==========================================================================
This project includes or depends on code from third party projects.
Attributions are contained in THIRD_PARTY_LICENSES.txt.
Attributions are contained in THIRD_PARTY_LICENSES.txt. You can
find a copy in the Helidon GitHub repository:
https://github.com/oracle/helidon/blob/${project.version}/THIRD_PARTY_LICENSES.txt
Or in the Helidon artifact: io.helidon.licensing:helidon-licensing:${project.version}

View File

@@ -149,6 +149,21 @@
<groupId>io.helidon.build-tools</groupId>
<artifactId>helidon-maven-plugin</artifactId>
<version>${version.plugin.helidon}</version>
<dependencies>
<dependency>
<groupId>io.helidon.licensing</groupId>
<artifactId>helidon-licensing</artifactId>
<version>${helidon.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>third-party-license-report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.helidon.build-tools</groupId>

View File

@@ -45,3 +45,4 @@ archetype-resources/pom.xml
# excluded as it contains both Oracle and original copyright notice
src/main/java/org/jboss/weld/bean/proxy/ProxyFactory.java
etc/THIRD_PARTY_LICENSES.xml
etc/HELIDON_THIRD_PARTY_LICENSES.xml

108
licensing/pom.xml Normal file
View File

@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.helidon</groupId>
<artifactId>helidon-project</artifactId>
<version>2.0.3-SNAPSHOT</version>
</parent>
<groupId>io.helidon.licensing</groupId>
<artifactId>helidon-licensing</artifactId>
<packaging>jar</packaging>
<name>Helidon Licensing</name>
<properties>
<spotbugs.skip>true</spotbugs.skip>
<maven.source.skip>true</maven.source.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-attributions</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<!--suppress UnresolvedMavenProperty -->
<directory>${top.parent.basedir}</directory>
<targetPath>META-INF/</targetPath>
<filtering>true</filtering>
<includes>
<include>THIRD_PARTY_LICENSES.txt</include>
</includes>
</resource>
<resource>
<!--suppress UnresolvedMavenProperty -->
<directory>${top.parent.basedir}/etc</directory>
<targetPath>META-INF/</targetPath>
<filtering>true</filtering>
<includes>
<include>HELIDON_THIRD_PARTY_LICENSES.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>empty-sources-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>sources</classifier>
<classesDirectory>${project.build.directory}/sources</classesDirectory>
</configuration>
</execution>
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${project.build.directory}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,22 @@
/*
* Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Licensing information for Helidon
*/
module io.helidon.licensing {
}

View File

@@ -159,6 +159,7 @@
<module>dependencies</module>
<module>bom</module>
<module>applications</module>
<module>licensing</module>
<module>common</module>
<module>config</module>
<module>media</module>