Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Adding required configuration to publish to central, and bump plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Guerin committed Apr 28, 2016
1 parent dcc0c17 commit 1535af8
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 24 deletions.
167 changes: 144 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,29 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>

<maven.version>3.0.5</maven.version>

<plugin.checkstyle.version>2.17</plugin.checkstyle.version>
<plugin.clean.version>3.0.0</plugin.clean.version>
<plugin.compiler.version>3.5.1</plugin.compiler.version>
<plugin.deploy.version>2.8.2</plugin.deploy.version>
<plugin.github.version>0.12</plugin.github.version>
<plugin.gpg.version>1.6</plugin.gpg.version>
<plugin.install.version>2.5.2</plugin.install.version>
<plugin.invoker.version>2.0.0</plugin.invoker.version>
<plugin.jar.version>2.6</plugin.jar.version>
<plugin.javadoc.version>2.10.3</plugin.javadoc.version>
<plugin.plexus.version>1.6</plugin.plexus.version>
<plugin.plugin.version>3.4</plugin.plugin.version>
<plugin.project-info-reports.version>2.9</plugin.project-info-reports.version>
<plugin.release.version>2.5.3</plugin.release.version>
<plugin.resources.version>2.7</plugin.resources.version>
<plugin.site.version>3.5.1</plugin.site.version>
<plugin.source.version>3.0.0</plugin.source.version>
<plugin.surefire.version>2.19.1</plugin.surefire.version>
<plugin.toolchains.version>1.1</plugin.toolchains.version>
<plugin.versions.version>2.2</plugin.versions.version>
</properties>

<prerequisites>
Expand All @@ -27,7 +49,7 @@
</issueManagement>

<scm>
<connection>scm:git:git://github.com/casperjs/casperjs-runner-maven-plugin.git</connection>
<connection>scm:git:git@github.com:casperjs/casperjs-runner-maven-plugin.git</connection>
<url>https://github.com/casperjs/casperjs-runner-maven-plugin</url>
</scm>

Expand Down Expand Up @@ -60,6 +82,8 @@
<developer>
<id>bguerin</id>
<name>Benoit Guerin</name>
<organization>CasperJS</organization>
<organizationUrl>http://casperjs.org/</organizationUrl>
</developer>
</developers>

Expand Down Expand Up @@ -118,10 +142,84 @@
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>${plugin.clean.version}</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${plugin.resources.version}</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${plugin.compiler.version}</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${plugin.surefire.version}</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>${plugin.jar.version}</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>${plugin.source.version}</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${plugin.javadoc.version}</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>${plugin.site.version}</version>
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>${plugin.plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>${plugin.install.version}</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>${plugin.deploy.version}</version>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
<version>${plugin.toolchains.version}</version>
</plugin>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>${plugin.invoker.version}</version>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>${plugin.gpg.version}</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>${plugin.release.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<version>${plugin.plexus.version}</version>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>${plugin.github.version}</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.3</version>
<configuration>
<goalPrefix>casperjs-runner</goalPrefix>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
Expand All @@ -145,7 +243,6 @@
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<version>1.5.5</version>
<executions>
<execution>
<goals>
Expand All @@ -155,6 +252,17 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>@{project.version}</tagNameFormat>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
<arguments>-P it</arguments>
</configuration>
</plugin>
</plugins>
</build>

Expand All @@ -165,7 +273,6 @@
<plugins>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>validate</phase>
Expand All @@ -178,7 +285,6 @@
</plugin>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>1.9</version>
<configuration>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<settingsFile>src/it/settings.xml</settingsFile>
Expand All @@ -204,26 +310,43 @@
</build>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>5366FFE3</keyname>
</configuration>
</execution>
</executions>
</plugin>
Expand All @@ -236,41 +359,40 @@
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<configuration>
<reportPlugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
<version>${plugin.project-info-reports.version}</version>
<configuration>
<dependencyDetailsEnabled>true</dependencyDetailsEnabled>
<dependencyLocationsEnabled>true</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.3</version>
<version>${plugin.plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>1.9</version>
<version>${plugin.invoker.version}</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>${plugin.javadoc.version}</version>
</plugin>
<plugin>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.17</version>
<version>${plugin.surefire.version}</version>
</plugin>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.12.1</version>
<version>${plugin.checkstyle.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.1</version>
<version>${plugin.versions.version}</version>
<reportSets>
<reportSet>
<reports>
Expand All @@ -288,7 +410,6 @@
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<message>Building site for ${project.version}</message>
<server>github</server>
Expand Down
2 changes: 1 addition & 1 deletion src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.3.0</version>
<version>1.5</version>
</skin>

<custom>
Expand Down

0 comments on commit 1535af8

Please sign in to comment.