move plaintext-maven-plugin release plugin to the profile
common-release.
This commit is contained in:
parent
f44fb68216
commit
d445ee985e
199
pom.xml
199
pom.xml
|
@ -115,7 +115,7 @@
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>common-snapshot-checks</id>
|
<id>common-snapshot</id>
|
||||||
<activation>
|
<activation>
|
||||||
<property>
|
<property>
|
||||||
<name>!Release</name>
|
<name>!Release</name>
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>common-release-checks</id>
|
<id>common-release</id>
|
||||||
<activation>
|
<activation>
|
||||||
<property>
|
<property>
|
||||||
<name>Release</name>
|
<name>Release</name>
|
||||||
|
@ -203,6 +203,34 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.github.olivierlemasle.maven</groupId>
|
||||||
|
<artifactId>plaintext-maven-plugin</artifactId>
|
||||||
|
<version>${plugin.plaintext.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${env.MAVEN_CONFIG_FOLDER}</outputDirectory>
|
||||||
|
<files>
|
||||||
|
<file>
|
||||||
|
<name>build_commits.csv</name>
|
||||||
|
<append>true</append>
|
||||||
|
<lines>
|
||||||
|
<line>
|
||||||
|
${project.groupId},${project.artifactId},${project.version},${project.scm.url},${buildNumber},${repository},${project.build.finalName},${project.packaging}
|
||||||
|
</line>
|
||||||
|
</lines>
|
||||||
|
</file>
|
||||||
|
</files>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>generate-file</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>write</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
@ -386,13 +414,15 @@
|
||||||
<profile>
|
<profile>
|
||||||
<id>jenkins-releases</id>
|
<id>jenkins-releases</id>
|
||||||
<activation>
|
<activation>
|
||||||
<jdk>[1.7,17)</jdk>
|
<jdk>[1.8,17)</jdk>
|
||||||
<property>
|
<property>
|
||||||
<name>jenkins-releases</name>
|
<name>jenkins-releases</name>
|
||||||
<value>true</value>
|
<value>true</value>
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<repository>${repository.releases.url}</repository>
|
||||||
|
</properties>
|
||||||
<!-- Repositories for dependency resolution -->
|
<!-- Repositories for dependency resolution -->
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -431,38 +461,7 @@
|
||||||
<url>${repository.releases.url}</url>
|
<url>${repository.releases.url}</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>io.github.olivierlemasle.maven</groupId>
|
|
||||||
<artifactId>plaintext-maven-plugin</artifactId>
|
|
||||||
<version>${plugin.plaintext.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${env.MAVEN_CONFIG_FOLDER}</outputDirectory>
|
|
||||||
<files>
|
|
||||||
<file>
|
|
||||||
<name>build_commits.csv</name>
|
|
||||||
<append>true</append>
|
|
||||||
<lines>
|
|
||||||
<line>
|
|
||||||
${project.groupId},${project.artifactId},${project.version},${project.scm.url},${buildNumber},${repository.releases.url},${project.build.finalName},${project.packaging}
|
|
||||||
</line>
|
|
||||||
</lines>
|
|
||||||
</file>
|
|
||||||
</files>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-file</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>write</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
@ -475,13 +474,15 @@
|
||||||
<value>true</value>
|
<value>true</value>
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<repository>${repository.staging.java7.url}</repository>
|
||||||
|
</properties>
|
||||||
<!-- Repositories for dependency resolution -->
|
<!-- Repositories for dependency resolution -->
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>gcube-staging-jenkins</id>
|
<id>gcube-staging-java7</id>
|
||||||
<name>gCube Jenkins Staging</name>
|
<name>gCube Staging Java7</name>
|
||||||
<url>${repository.jenkins.staging.url}</url>
|
<url>${repository.staging.java7.url}</url>
|
||||||
<snapshots>
|
<snapshots>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
<updatePolicy>never</updatePolicy>
|
<updatePolicy>never</updatePolicy>
|
||||||
|
@ -491,9 +492,9 @@
|
||||||
</releases>
|
</releases>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>gcube-staging</id>
|
<id>gcube-staging-gcore</id>
|
||||||
<name>gCube Staging</name>
|
<name>gCube Staging gCore</name>
|
||||||
<url>${repository.staging.url}</url>
|
<url>${repository.staging.gcore.url}</url>
|
||||||
<snapshots>
|
<snapshots>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
<updatePolicy>never</updatePolicy>
|
<updatePolicy>never</updatePolicy>
|
||||||
|
@ -502,19 +503,6 @@
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
|
||||||
<id>gcube-releases</id>
|
|
||||||
<name>gCube Releases</name>
|
|
||||||
<url>${repository.releases.url}</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
<updatePolicy>never</updatePolicy>
|
|
||||||
</snapshots>
|
|
||||||
<releases>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
<updatePolicy>never</updatePolicy>
|
|
||||||
</releases>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>gcube-externals</id>
|
<id>gcube-externals</id>
|
||||||
<name>gCube Externals</name>
|
<name>gCube Externals</name>
|
||||||
|
@ -539,37 +527,6 @@
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>io.github.olivierlemasle.maven</groupId>
|
|
||||||
<artifactId>plaintext-maven-plugin</artifactId>
|
|
||||||
<version>${plugin.plaintext.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${env.MAVEN_CONFIG_FOLDER}</outputDirectory>
|
|
||||||
<files>
|
|
||||||
<file>
|
|
||||||
<name>build_commits.csv</name>
|
|
||||||
<append>true</append>
|
|
||||||
<lines>
|
|
||||||
<line>
|
|
||||||
${project.groupId},${project.artifactId},${project.version},${project.scm.url},${buildNumber},${repository.jenkins.staging.url},${project.build.finalName},${project.packaging}
|
|
||||||
</line>
|
|
||||||
</lines>
|
|
||||||
</file>
|
|
||||||
</files>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-file</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>write</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
@ -582,7 +539,9 @@
|
||||||
<value>true</value>
|
<value>true</value>
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<repository>${repository.jenkins.staging.url}</repository>
|
||||||
|
</properties>
|
||||||
<!-- Repositories for dependency resolution -->
|
<!-- Repositories for dependency resolution -->
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -646,37 +605,6 @@
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>io.github.olivierlemasle.maven</groupId>
|
|
||||||
<artifactId>plaintext-maven-plugin</artifactId>
|
|
||||||
<version>${plugin.plaintext.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${env.MAVEN_CONFIG_FOLDER}</outputDirectory>
|
|
||||||
<files>
|
|
||||||
<file>
|
|
||||||
<name>build_commits.csv</name>
|
|
||||||
<append>true</append>
|
|
||||||
<lines>
|
|
||||||
<line>
|
|
||||||
${project.groupId},${project.artifactId},${project.version},${project.scm.url},${buildNumber},${repository.jenkins.staging.url},${project.build.finalName},${project.packaging}
|
|
||||||
</line>
|
|
||||||
</lines>
|
|
||||||
</file>
|
|
||||||
</files>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-file</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>write</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
@ -689,7 +617,9 @@
|
||||||
<value>true</value>
|
<value>true</value>
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<repository>${repository.jenkins.staging.java11.url}</repository>
|
||||||
|
</properties>
|
||||||
<!-- Repositories for dependency resolution -->
|
<!-- Repositories for dependency resolution -->
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -765,37 +695,6 @@
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>io.github.olivierlemasle.maven</groupId>
|
|
||||||
<artifactId>plaintext-maven-plugin</artifactId>
|
|
||||||
<version>${plugin.plaintext.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${env.MAVEN_CONFIG_FOLDER}</outputDirectory>
|
|
||||||
<files>
|
|
||||||
<file>
|
|
||||||
<name>build_commits.csv</name>
|
|
||||||
<append>true</append>
|
|
||||||
<lines>
|
|
||||||
<line>
|
|
||||||
${project.groupId},${project.artifactId},${project.version},${project.scm.url},${buildNumber},${repository.jenkins.staging.java11.url},${project.build.finalName},${project.packaging}
|
|
||||||
</line>
|
|
||||||
</lines>
|
|
||||||
</file>
|
|
||||||
</files>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-file</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>write</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
Loading…
Reference in New Issue