Update dependencies and README for 2.11

Change-Id: I3979e9f440a975dab3fb60226dcb6961ef026f46
This commit is contained in:
Mark Derricutt
2018-03-27 15:59:01 +13:00
parent 39fc76e6b1
commit e5a3a91ac3
5 changed files with 24 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
= Tiles Maven Plugin - Version 2.10 = Tiles Maven Plugin - Version 2.11
image:https://travis-ci.org/repaint-io/maven-tiles.svg[caption="Travis Build Status"] image:https://badges.gitter.im/repaint-io/maven-tiles.svg[link="https://gitter.im/repaint-io/maven-tiles?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"] image:https://travis-ci.org/repaint-io/maven-tiles.svg[caption="Travis Build Status"] image:https://badges.gitter.im/repaint-io/maven-tiles.svg[link="https://gitter.im/repaint-io/maven-tiles?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"]
@@ -62,7 +62,7 @@ you specify a configuration.
<plugin> <plugin>
<groupId>io.repaint.maven</groupId> <groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId> <artifactId>tiles-maven-plugin</artifactId>
<version>2.10</version> <version>2.11</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<filtering>false</filtering> <filtering>false</filtering>
@@ -160,7 +160,7 @@ If you need to use them, add them to your configuration section:
<plugin> <plugin>
<groupId>io.repaint.maven</groupId> <groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId> <artifactId>tiles-maven-plugin</artifactId>
<version>2.10</version> <version>2.11</version>
<configuration> <configuration>
<buildSmells>dependencymanagement, dependencies, repositories, pluginrepositories</buildSmells> <buildSmells>dependencymanagement, dependencies, repositories, pluginrepositories</buildSmells>
<tiles> <tiles>
@@ -233,7 +233,7 @@ be applied (in this case before `P`) resulting in the desired structure:
<plugin> <plugin>
<groupId>io.repaint.maven</groupId> <groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId> <artifactId>tiles-maven-plugin</artifactId>
<version>2.10</version> <version>2.11</version>
<configuration> <configuration>
<applyBefore>group:P</applyBefore> <applyBefore>group:P</applyBefore>
<tiles> <tiles>

30
pom.xml
View File

@@ -47,12 +47,8 @@
</developer> </developer>
</developers> </developers>
<prerequisites>
<maven>3.0.4</maven>
</prerequisites>
<properties> <properties>
<mavenVersion>3.3.3</mavenVersion> <mavenVersion>3.5.3</mavenVersion>
<repaint.release>dev</repaint.release> <repaint.release>dev</repaint.release>
</properties> </properties>
@@ -80,7 +76,7 @@
<dependency> <dependency>
<groupId>org.codehaus.groovy</groupId> <groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId> <artifactId>groovy-all</artifactId>
<version>2.4.8</version> <version>2.4.14</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
@@ -192,12 +188,12 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version> <version>3.0.0-M1</version>
<!-- Invocation is defined by the release plugin goal set hence no executions --> <!-- Invocation is defined by the release plugin goal set hence no executions -->
<configuration> <configuration>
<rules> <rules>
<requireMavenVersion> <requireMavenVersion>
<version>[3.2.2,)</version> <version>[3.5.3,)</version>
</requireMavenVersion> </requireMavenVersion>
<requireReleaseDeps> <requireReleaseDeps>
<!-- Don't allow releases with snapshop deps or parents --> <!-- Don't allow releases with snapshop deps or parents -->
@@ -234,17 +230,17 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version> <version>3.7.0</version>
<configuration> <configuration>
<source>1.7</source> <source>1.8</source>
<target>1.7</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.plexus</groupId> <groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId> <artifactId>plexus-component-metadata</artifactId>
<version>1.5.5</version> <version>1.7.1</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
@@ -257,7 +253,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId> <artifactId>maven-plugin-plugin</artifactId>
<version>3.5</version> <version>3.5.1</version>
<configuration> <configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration> </configuration>
@@ -282,21 +278,21 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version> <version>2.21.0</version>
</plugin> </plugin>
<!-- not supporting mixed java/groovy compilation --> <!-- not supporting mixed java/groovy compilation -->
<plugin> <plugin>
<groupId>org.codehaus.gmavenplus</groupId> <groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId> <artifactId>gmavenplus-plugin</artifactId>
<version>1.5</version> <version>1.6</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>addSources</goal> <goal>addSources</goal>
<goal>addTestSources</goal> <goal>addTestSources</goal>
<goal>compile</goal> <goal>compile</goal>
<goal>testCompile</goal> <goal>compileTests</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
@@ -306,7 +302,7 @@
<plugin> <plugin>
<groupId>com.bluetrainsoftware.maven</groupId> <groupId>com.bluetrainsoftware.maven</groupId>
<artifactId>groovydoc-maven-plugin</artifactId> <artifactId>groovydoc-maven-plugin</artifactId>
<version>1.3</version> <version>2.1</version>
<executions> <executions>
<execution> <execution>
<id>attach-docs</id> <id>attach-docs</id>

View File

@@ -41,7 +41,7 @@ abstract class AbstractTileMojo extends AbstractMojo {
@Component @Component
Logger logger Logger logger
@Component @Parameter( defaultValue = "\${session}", readonly = true )
MavenSession mavenSession MavenSession mavenSession
@Component @Component

View File

@@ -36,6 +36,7 @@ import org.apache.maven.artifact.resolver.ArtifactResolver
import org.apache.maven.artifact.versioning.VersionRange import org.apache.maven.artifact.versioning.VersionRange
import org.apache.maven.execution.MavenSession import org.apache.maven.execution.MavenSession
import org.apache.maven.model.Build import org.apache.maven.model.Build
import org.apache.maven.model.Dependency
import org.apache.maven.model.DistributionManagement import org.apache.maven.model.DistributionManagement
import org.apache.maven.model.Model import org.apache.maven.model.Model
import org.apache.maven.model.Parent import org.apache.maven.model.Parent
@@ -522,6 +523,10 @@ public class TilesMavenLifecycleParticipant extends AbstractMavenLifecyclePartic
return createModelSource(artifact.file) return createModelSource(artifact.file)
} }
ModelSource2 resolveModel(Dependency dependency) throws UnresolvableModelException {
return resolveModel(dependency.groupId, dependency.artifactId, dependency.version)
}
ModelSource2 resolveModel(Parent parent) throws UnresolvableModelException { ModelSource2 resolveModel(Parent parent) throws UnresolvableModelException {
return resolveModel(parent.groupId, parent.artifactId, parent.version) return resolveModel(parent.groupId, parent.artifactId, parent.version)
} }

View File

@@ -16,8 +16,6 @@ import org.apache.maven.plugins.annotations.ResolutionScope
@CompileStatic @CompileStatic
@Mojo(name = "validate", requiresProject = true, requiresDependencyResolution = ResolutionScope.NONE) @Mojo(name = "validate", requiresProject = true, requiresDependencyResolution = ResolutionScope.NONE)
class ValidateTileMojo extends AbstractTileMojo { class ValidateTileMojo extends AbstractTileMojo {
@Component
MavenSession session
@Override @Override
void execute() throws MojoExecutionException, MojoFailureException { void execute() throws MojoExecutionException, MojoFailureException {