mirror of
https://github.com/jlengrand/helidon.git
synced 2026-03-10 00:11:20 +00:00
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:
@@ -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}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
108
licensing/pom.xml
Normal 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>
|
||||
22
licensing/src/main/java/module-info.java
Normal file
22
licensing/src/main/java/module-info.java
Normal 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 {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user