Skip to content

Commit

Permalink
Use explicit versioning and move it all in pluginManagement of root pom
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Apr 12, 2018
1 parent 6edb230 commit 807c4f0
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 26 deletions.
1 change: 0 additions & 1 deletion leshan-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ Contributors:
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<createSourcesJar>true</createSourcesJar>
Expand Down
2 changes: 0 additions & 2 deletions leshan-bsserver-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ Contributors:
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
Expand All @@ -99,7 +98,6 @@ Contributors:
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<goals>
Expand Down
1 change: 0 additions & 1 deletion leshan-client-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Contributors:
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
Expand Down
1 change: 0 additions & 1 deletion leshan-server-cluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Contributors:
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
Expand Down
2 changes: 0 additions & 2 deletions leshan-server-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ Contributors:
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
Expand All @@ -116,7 +115,6 @@ Contributors:
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<goals>
Expand Down
86 changes: 67 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ Contributors:
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down Expand Up @@ -185,7 +184,6 @@ Contributors:
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand All @@ -200,23 +198,58 @@ Contributors:
</profiles>

<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0-beta-4</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
Expand All @@ -234,8 +267,8 @@ Contributors:
<version>2.19</version>
<configuration>
<systemPropertyVariables>
<logback.configurationFile>logback-test.xml</logback.configurationFile>
</systemPropertyVariables>
<logback.configurationFile>logback-test.xml</logback.configurationFile>
</systemPropertyVariables>
<parallel>classes</parallel>
<threadCount>4</threadCount>
<excludes>
Expand Down Expand Up @@ -263,6 +296,7 @@ Contributors:
</plugin>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.2</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
Expand Down Expand Up @@ -308,6 +342,20 @@ Contributors:
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencyManagement>
Expand Down

0 comments on commit 807c4f0

Please sign in to comment.