Merge "Ensure core plugins are bundled by Maven"

This commit is contained in:
Shawn Pearce
2013-05-06 21:39:40 +00:00
committed by Gerrit Code Review
11 changed files with 98 additions and 203 deletions

View File

@@ -120,6 +120,38 @@ limitations under the License.
</dependency>
</dependencies>
<profiles>
<profile>
<id>plugins</id>
<activation>
<property>
<name>!gerrit.plugins.skip</name>
</property>
</activation>
<dependencies>
<!-- CORE PLUGIN LIST -->
<dependency>
<groupId>com.googlesource.gerrit.plugins.replication</groupId>
<artifactId>replication</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlesource.gerrit.plugins.reviewnotes</groupId>
<artifactId>reviewnotes</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlesource.gerrit.plugins.validators</groupId>
<artifactId>commit-message-length-validator</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
@@ -194,6 +226,19 @@ limitations under the License.
<goal>copy-dependencies</goal>
</goals>
</execution>
<execution>
<id>copy-plugins</id>
<configuration>
<!-- CORE PLUGIN LIST -->
<includeArtifactIds>commit-message-length-validator,replication,reviewnotes</includeArtifactIds>
<includeTypes>jar</includeTypes>
<stripVersion>true</stripVersion>
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/plugins</outputDirectory>
</configuration>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>