81 lines
No EOL
2.7 KiB
XML
81 lines
No EOL
2.7 KiB
XML
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>love.distributedrebirth.gdxapp4d</groupId>
|
|
<artifactId>gdxapp4d</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>gdxapp4d-mvn-scripts</artifactId>
|
|
<packaging>pom</packaging>
|
|
<profiles>
|
|
<profile>
|
|
<id>mvn-versions-check</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>versions-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>run-plugin-updates</id>
|
|
<goals>
|
|
<goal>display-plugin-updates</goal>
|
|
</goals>
|
|
<phase>initialize</phase>
|
|
<configuration>
|
|
<outputFile>target/versions-plugin-updates.txt</outputFile>
|
|
<outputEncoding>${project.build.sourceEncoding}</outputEncoding>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>run-dependency-updates</id>
|
|
<goals>
|
|
<goal>display-dependency-updates</goal>
|
|
</goals>
|
|
<phase>initialize</phase>
|
|
<configuration>
|
|
<outputFile>target/versions-dependency-updates.txt</outputFile>
|
|
<outputEncoding>${project.build.sourceEncoding}</outputEncoding>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>mvn-versions-check</id>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<phase>initialize</phase>
|
|
<configuration>
|
|
<target>
|
|
<echo>Loading version output.</echo>
|
|
<loadfile property="versions_plugins" srcFile="target/versions-plugin-updates.txt" encoding="UTF-8" />
|
|
<loadfile property="versions_dependency" srcFile="target/versions-dependency-updates.txt" encoding="UTF-8" />
|
|
<echo>Checking for plugin updates.</echo>
|
|
<fail message="Out of date plugin detected.">
|
|
<condition>
|
|
<contains string="${versions_plugins}" substring="->" />
|
|
</condition>
|
|
</fail>
|
|
<echo>Checking for dependency updates.</echo>
|
|
<fail message="Out of date dependency detected.">
|
|
<condition>
|
|
<contains string="${versions_dependency}" substring="->" />
|
|
</condition>
|
|
</fail>
|
|
<echo>No pending updates found.</echo>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project> |