Skip to content
Permalink
Browse files
[JENKINS-50692] Incrementals profiles.
  • Loading branch information
jglick committed Apr 16, 2018
1 parent c2041fe commit fa64385172027a6265d40efcecd71c42dbfb87c6
Showing with 125 additions and 8 deletions.
  1. +125 −8 pom.xml
133 pom.xml
@@ -12,10 +12,6 @@
<url>http://jenkins-ci.org/</url>
<inceptionYear>2004</inceptionYear>

<prerequisites>
<maven>2.2.1</maven>
</prerequisites>

<issueManagement>
<system>JIRA</system>
<url>http://issues.jenkins-ci.org</url>
@@ -638,9 +634,11 @@
<version>[3.3.9,)</version>
<message>3.3.9 is required at least.</message>
</requireMavenVersion>
<!-- TODO failing during incrementals deploy: MENFORCER-281
<requirePluginVersions>
<banSnapshots>false</banSnapshots>
</requirePluginVersions>
-->
<requireJavaVersion>
<version>[1.${java.level}.0,]</version>
</requireJavaVersion>
@@ -674,10 +672,6 @@
</plugin>
(or just override java.level) -->
</enforceBytecodeVersion>
<requireReleaseDeps>
<message>No Snapshots Allowed For Release Versions</message>
<onlyWhenRelease>true</onlyWhenRelease>
</requireReleaseDeps>
</rules>
</configuration>
</execution>
@@ -739,6 +733,127 @@
<maven.repository.update.freqency>always</maven.repository.update.freqency>
</properties>
</profile>
<profile> <!-- see JEP-305 -->
<id>consume-incrementals</id>
<repositories>
<repository>
<id>incrementals</id>
<url>${incrementals.url}</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>incrementals</id>
<url>${incrementals.url}</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>might-produce-incrementals</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<flattenMode>oss</flattenMode>
</configuration>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>display-info</id>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.5.0,)</version>
<message>3.5.0+ required to use Incrementals.</message>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>produce-incrementals</id>
<activation>
<property>
<name>set.changelist</name>
<value>true</value>
</property>
</activation>
<distributionManagement>
<repository>
<id>incrementals</id>
<url>${incrementals.url}</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
<execution>
<id>attach-test-sources</id>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<skipSource>${no-test-jar}</skipSource>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<properties>
@@ -765,6 +880,8 @@
Generally it is recommended to use @SuppressFBWarnings annotation unless you want to ignore an entire class of issues -->
<findbugs.excludeFilterFile />

<incrementals.url>https://repo.jenkins-ci.org/incrementals/</incrementals.url>

<!-- Define all plugin versions as properties so individual hierarchies can easily override -->
<animal-sniffer-plugin.version>1.16</animal-sniffer-plugin.version>
<apt-maven-plugin.version>1.0-alpha-5</apt-maven-plugin.version>

0 comments on commit fa64385

Please sign in to comment.