mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-20 03:49:58 +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");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,7 +29,7 @@ class GroovyMavenBuildCustomizer implements BuildCustomizer<MavenBuild> {
|
||||
@Override
|
||||
public void customize(MavenBuild build) {
|
||||
build.plugins().add("org.codehaus.gmavenplus", "gmavenplus-plugin", (groovyMavenPlugin) -> {
|
||||
groovyMavenPlugin.version("1.11.0");
|
||||
groovyMavenPlugin.version("1.13.1");
|
||||
groovyMavenPlugin.execution(null,
|
||||
(execution) -> execution.goal("addSources").goal("addTestSources").goal("generateStubs")
|
||||
.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");
|
||||
* 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(groovyPlugin.getGroupId()).isEqualTo("org.codehaus.gmavenplus");
|
||||
assertThat(groovyPlugin.getArtifactId()).isEqualTo("gmavenplus-plugin");
|
||||
assertThat(groovyPlugin.getVersion()).isEqualTo("1.11.0");
|
||||
assertThat(groovyPlugin.getVersion()).isEqualTo("1.13.1");
|
||||
Configuration configuration = groovyPlugin.getConfiguration();
|
||||
assertThat(configuration).isNull();
|
||||
assertThat(groovyPlugin.getExecutions()).hasSize(1);
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<version>1.11.0</version>
|
||||
<version>1.13.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<version>1.11.0</version>
|
||||
<version>1.13.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
||||
Reference in New Issue
Block a user