Skip to content

Commit

Permalink
build: update maven plugin dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar-espina-wpp committed Mar 4, 2024
1 parent a355f43 commit 726db2e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 32 deletions.
7 changes: 0 additions & 7 deletions handlebars-maven-plugin-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars-maven-plugin-tests</artifactId>
<packaging>war</packaging>

Expand Down Expand Up @@ -41,12 +40,6 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>

<!-- Deploy plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
24 changes: 11 additions & 13 deletions handlebars-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
Expand All @@ -36,32 +35,26 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.8.3</version>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.2.1</version>
<version>3.9.6</version>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>3.8.3</version>
<version>3.9.6</version>
</dependency>

<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.6.1</version>
<version>3.11.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.4.1</version>
<version>3.5.1</version>
</dependency>

<dependency>
Expand All @@ -85,6 +78,12 @@
<classifier>tests</classifier>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand All @@ -97,7 +96,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.6.1</version>
<version>3.11.0</version>
<configuration>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
Expand All @@ -112,7 +111,6 @@
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;
import java.util.*;

import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
Expand All @@ -31,7 +25,6 @@
import com.github.jknack.handlebars.TagType;
import com.github.jknack.handlebars.Template;
import com.github.jknack.handlebars.helper.I18nHelper;
import edu.emory.mathcs.backport.java.util.Collections;

/**
* Convert {@link ResourceBundle} to JavaScript using the I18n.js API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.mockito.Mockito.*;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -222,7 +221,7 @@ public void partials() throws Exception {

private MavenProject newProject(final String... classpath)
throws DependencyResolutionRequiredException {
MavenProject project = mock(MavenProject.class);
MavenProject project = spy(new MavenProject());
when(project.getRuntimeClasspathElements()).thenReturn(Lists.newArrayList(classpath));
return project;
}
Expand Down
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.11.0</version>
<version>${mockito.version}</version>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down Expand Up @@ -425,6 +431,7 @@
<spring.version>6.0.0</spring.version>
<jacoco.version>0.8.11</jacoco.version>
<antlr-version>4.13.1</antlr-version>
<mockito.version>5.11.0</mockito.version>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssa</maven.build.timestamp.format>
<maven-antrun-plugin.version>3.1.0</maven-antrun-plugin.version>
<timestamp>${maven.build.timestamp}</timestamp>
Expand Down

0 comments on commit 726db2e

Please sign in to comment.