polish for third-party license file generation

This commit is contained in:
Martin Lippert
2019-03-01 15:25:18 +01:00
parent 2cb7408f8a
commit 664691a11a
15 changed files with 503 additions and 102 deletions

View File

@@ -1,6 +1,6 @@
The content of this package is provided under the EPL v1.0 license (see below).
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at: https://github.com/spring-projects/sts4/blob/master/headless-services/bosh-language-server/open-source-licenses.txt
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at META-INF/third-party-open-source-licenses.txt for a list of libraries and META-INF/third-party-open-source-licenses/ for the licenses themselves.
===

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
Welcome to the formatted license file
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/groupId">
groupId: <xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/artifactId">
artifactId: <xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/version">
version: <xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>

View File

@@ -1 +0,0 @@
work-in-progress

View File

@@ -1,21 +1,22 @@
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>bosh-language-server</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.ide.vscode</groupId>
<artifactId>commons-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<relativePath>../commons/pom.xml</relativePath>
</parent>
<properties>
<dependencies.version>${project.version}</dependencies.version>
</properties>
<dependencies>
<!-- spring boot -->
<dependency>
@@ -48,13 +49,13 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Configure fat jar -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.4.1.RELEASE</version>
<executions>
<execution>
<goals>
@@ -63,6 +64,110 @@
</execution>
</executions>
</plugin>
<!-- generate and package license information for included dependencies -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<executions>
<execution>
<id>download-licenses</id>
<phase>process-classes</phase>
<goals>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<transformationSets>
<transformationSet>
<dir>${basedir}/target/generated-resources/</dir>
<includes>*.xml</includes>
<stylesheet>${basedir}/license-format-stylesheet.xsl</stylesheet>
<outputDir>${project.build.directory}/generated-license-information</outputDir>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-own-license</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<filtering>true</filtering>
<include>LICENSE</include>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>copy-and-rename-license-summary</id>
<phase>process-classes</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${project.build.directory}/generated-license-information/licenses.xml</sourceFile>
<destinationFile>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses.txt</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license-files</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources/licenses</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -1,6 +1,6 @@
The content of this package is provided under the EPL v1.0 license (see below).
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at: https://github.com/spring-projects/sts4/blob/master/headless-services/concourse-language-server/open-source-licenses.txt
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at META-INF/third-party-open-source-licenses.txt for a list of libraries and META-INF/third-party-open-source-licenses/ for the licenses themselves.
===

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
Welcome to the formatted license file
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/groupId">
groupId: <xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/artifactId">
artifactId: <xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/version">
version: <xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>

View File

@@ -1 +0,0 @@
work-in-progress

View File

@@ -1,21 +1,22 @@
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>concourse-language-server</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.ide.vscode</groupId>
<artifactId>commons-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<relativePath>../commons/pom.xml</relativePath>
</parent>
<properties>
<dependencies.version>${project.version}</dependencies.version>
</properties>
<distributionManagement>
<repository>
<id>distribution-repository</id>
@@ -30,7 +31,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Language Servers -->
<dependency>
<groupId>org.springframework.ide.vscode</groupId>
@@ -62,13 +63,13 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Set source 1.8 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
@@ -78,7 +79,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.4.1.RELEASE</version>
<executions>
<execution>
<goals>
@@ -87,6 +87,110 @@
</execution>
</executions>
</plugin>
<!-- generate and package license information for included dependencies -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<executions>
<execution>
<id>download-licenses</id>
<phase>process-classes</phase>
<goals>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<transformationSets>
<transformationSet>
<dir>${basedir}/target/generated-resources/</dir>
<includes>*.xml</includes>
<stylesheet>${basedir}/license-format-stylesheet.xsl</stylesheet>
<outputDir>${project.build.directory}/generated-license-information</outputDir>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-own-license</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<filtering>true</filtering>
<include>LICENSE</include>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>copy-and-rename-license-summary</id>
<phase>process-classes</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${project.build.directory}/generated-license-information/licenses.xml</sourceFile>
<destinationFile>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses.txt</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license-files</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources/licenses</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -1,6 +1,6 @@
The content of this package is provided under the EPL v1.0 license (see below).
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at: https://github.com/spring-projects/sts4/blob/master/headless-services/manifest-yaml-language-server/open-source-licenses.txt
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at META-INF/third-party-open-source-licenses.txt for a list of libraries and META-INF/third-party-open-source-licenses/ for the licenses themselves.
===

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
Welcome to the formatted license file
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/groupId">
groupId: <xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/artifactId">
artifactId: <xsl:apply-templates/>
</xsl:template>
<xsl:template match="/licenseSummary/dependencies/dependency/version">
version: <xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>

View File

@@ -1,4 +1,5 @@
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -63,7 +64,7 @@
<artifactId>reactor-netty</artifactId>
<version>${reactor-netty}</version>
</dependency>
<dependency>
<groupId>org.springframework.ide.vscode</groupId>
<artifactId>commons-cf</artifactId>
@@ -82,13 +83,13 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Set source 1.8 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
@@ -98,7 +99,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.4.1.RELEASE</version>
<executions>
<execution>
<goals>
@@ -107,6 +107,110 @@
</execution>
</executions>
</plugin>
<!-- generate and package license information for included dependencies -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<executions>
<execution>
<id>download-licenses</id>
<phase>process-classes</phase>
<goals>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<transformationSets>
<transformationSet>
<dir>${basedir}/target/generated-resources/</dir>
<includes>*.xml</includes>
<stylesheet>${basedir}/license-format-stylesheet.xsl</stylesheet>
<outputDir>${project.build.directory}/generated-license-information</outputDir>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-own-license</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<filtering>true</filtering>
<include>LICENSE</include>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>copy-and-rename-license-summary</id>
<phase>process-classes</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${project.build.directory}/generated-license-information/licenses.xml</sourceFile>
<destinationFile>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses.txt</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license-files</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources/licenses</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -1,6 +1,6 @@
The content of this package is provided under the EPL v1.0 license (see below).
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at: https://github.com/spring-projects/sts4/blob/master/headless-services/spring-boot-language-server/open-source-licenses.txt
For a detailed overview of embedded third-party components and their OSS licenses, please take a look at META-INF/third-party-open-source-licenses.txt for a list of libraries and META-INF/third-party-open-source-licenses/ for the licenses themselves.
===

View File

@@ -22,13 +22,11 @@
<id>${project.name}-repo</id>
<url>file://${project.basedir}/repo</url>
</repository>
<repository>
<id>oss-jfrog-snapshots</id>
<url>https://oss.jfrog.org/artifactory/libs-snapshot</url>
<!-- <releases>
<enabled>false</enabled>
</releases> -->
<!-- <releases> <enabled>false</enabled> </releases> -->
<snapshots>
<enabled>true</enabled>
</snapshots>
@@ -172,82 +170,107 @@
</plugin>
<!-- generate and package license information for included dependencies -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<executions>
<execution>
<id>download-licenses</id>
<phase>process-classes</phase>
<goals>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<transformationSets>
<transformationSet>
<dir>${basedir}/target/generated-resources/</dir>
<includes>*.xml</includes>
<stylesheet>${basedir}/license-format-stylesheet.xsl</stylesheet>
<outputDir>${project.build.directory}/generated-license-information</outputDir>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<executions>
<execution>
<id>download-licenses</id>
<phase>process-classes</phase>
<goals>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license-summary</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target/generated-license-information/</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<transformationSets>
<transformationSet>
<dir>${basedir}/target/generated-resources/</dir>
<includes>*.xml</includes>
<stylesheet>${basedir}/license-format-stylesheet.xsl</stylesheet>
<outputDir>${project.build.directory}/generated-license-information</outputDir>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
<execution>
<id>copy-license-files</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/licenses/</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target/generated-resources/licenses</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-own-license</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<filtering>true</filtering>
<include>LICENSE</include>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>copy-and-rename-license-summary</id>
<phase>process-classes</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${project.build.directory}/generated-license-information/licenses.xml</sourceFile>
<destinationFile>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses.txt</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license-files</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/third-party-open-source-licenses/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources/licenses</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>