mirror of
https://gitee.com/dcren/initializr.git
synced 2026-08-10 11:13:34 +08:00
Upgrade to GMavenPlus 1.13.1
Closes gh-1311
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -29,7 +29,7 @@ class GroovyMavenBuildCustomizer implements BuildCustomizer<MavenBuild> {
|
|||||||
@Override
|
@Override
|
||||||
public void customize(MavenBuild build) {
|
public void customize(MavenBuild build) {
|
||||||
build.plugins().add("org.codehaus.gmavenplus", "gmavenplus-plugin", (groovyMavenPlugin) -> {
|
build.plugins().add("org.codehaus.gmavenplus", "gmavenplus-plugin", (groovyMavenPlugin) -> {
|
||||||
groovyMavenPlugin.version("1.11.0");
|
groovyMavenPlugin.version("1.13.1");
|
||||||
groovyMavenPlugin.execution(null,
|
groovyMavenPlugin.execution(null,
|
||||||
(execution) -> execution.goal("addSources").goal("addTestSources").goal("generateStubs")
|
(execution) -> execution.goal("addSources").goal("addTestSources").goal("generateStubs")
|
||||||
.goal("compile").goal("generateTestStubs").goal("compileTests").goal("removeStubs")
|
.goal("compile").goal("generateTestStubs").goal("compileTests").goal("removeStubs")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2020 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -37,7 +37,7 @@ class GroovyMavenBuildCustomizerTests {
|
|||||||
assertThat(build.plugins().values()).singleElement().satisfies((groovyPlugin) -> {
|
assertThat(build.plugins().values()).singleElement().satisfies((groovyPlugin) -> {
|
||||||
assertThat(groovyPlugin.getGroupId()).isEqualTo("org.codehaus.gmavenplus");
|
assertThat(groovyPlugin.getGroupId()).isEqualTo("org.codehaus.gmavenplus");
|
||||||
assertThat(groovyPlugin.getArtifactId()).isEqualTo("gmavenplus-plugin");
|
assertThat(groovyPlugin.getArtifactId()).isEqualTo("gmavenplus-plugin");
|
||||||
assertThat(groovyPlugin.getVersion()).isEqualTo("1.11.0");
|
assertThat(groovyPlugin.getVersion()).isEqualTo("1.13.1");
|
||||||
Configuration configuration = groovyPlugin.getConfiguration();
|
Configuration configuration = groovyPlugin.getConfiguration();
|
||||||
assertThat(configuration).isNull();
|
assertThat(configuration).isNull();
|
||||||
assertThat(groovyPlugin.getExecutions()).hasSize(1);
|
assertThat(groovyPlugin.getExecutions()).hasSize(1);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.gmavenplus</groupId>
|
<groupId>org.codehaus.gmavenplus</groupId>
|
||||||
<artifactId>gmavenplus-plugin</artifactId>
|
<artifactId>gmavenplus-plugin</artifactId>
|
||||||
<version>1.11.0</version>
|
<version>1.13.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.gmavenplus</groupId>
|
<groupId>org.codehaus.gmavenplus</groupId>
|
||||||
<artifactId>gmavenplus-plugin</artifactId>
|
<artifactId>gmavenplus-plugin</artifactId>
|
||||||
<version>1.11.0</version>
|
<version>1.13.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|||||||
Reference in New Issue
Block a user