move common plugin declaration inside gcube-official profile, just for testing
This commit is contained in:
parent
0315b09ce7
commit
067dcfa23b
44
pom.xml
44
pom.xml
|
@ -294,6 +294,46 @@
|
||||||
<url>${repository.snapshots.url}</url>
|
<url>${repository.snapshots.url}</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.gmaven</groupId>
|
||||||
|
<artifactId>groovy-maven-plugin</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>process-classes</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>execute</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<defaults>
|
||||||
|
<name>tag</name>
|
||||||
|
</defaults>
|
||||||
|
<source>
|
||||||
|
def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8')
|
||||||
|
matcher = (fileContents =~ /(?s).\[v$project.version\].*?/)
|
||||||
|
if (!matcher.find()) {
|
||||||
|
throw new IllegalArgumentException("Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md")
|
||||||
|
}
|
||||||
|
assert matcher[0][1]: "Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md"
|
||||||
|
</source>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
|
<artifactId>groovy-all</artifactId>
|
||||||
|
<version>3.0.0-beta-3</version>
|
||||||
|
<type>pom</type>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<!-- profile activated with jdk > 8 -->
|
<!-- profile activated with jdk > 8 -->
|
||||||
<profile>
|
<profile>
|
||||||
|
@ -1535,7 +1575,7 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<!--plugin>
|
||||||
<groupId>org.codehaus.gmaven</groupId>
|
<groupId>org.codehaus.gmaven</groupId>
|
||||||
<artifactId>groovy-maven-plugin</artifactId>
|
<artifactId>groovy-maven-plugin</artifactId>
|
||||||
<version>2.1.1</version>
|
<version>2.1.1</version>
|
||||||
|
@ -1568,7 +1608,7 @@
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin-->
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue