mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-24 18:04:58 +08:00
Upgrade to GMavenPlus 1.11.0
Closes gh-1140
This commit is contained in:
parent
8411c2d61d
commit
86081e887a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 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.8.1");
|
||||
groovyMavenPlugin.version("1.11.0");
|
||||
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-2019 the original author or authors.
|
||||
* Copyright 2012-2020 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()).hasOnlyOneElementSatisfying((groovyPlugin) -> {
|
||||
assertThat(groovyPlugin.getGroupId()).isEqualTo("org.codehaus.gmavenplus");
|
||||
assertThat(groovyPlugin.getArtifactId()).isEqualTo("gmavenplus-plugin");
|
||||
assertThat(groovyPlugin.getVersion()).isEqualTo("1.8.1");
|
||||
assertThat(groovyPlugin.getVersion()).isEqualTo("1.11.0");
|
||||
Configuration configuration = groovyPlugin.getConfiguration();
|
||||
assertThat(configuration).isNull();
|
||||
assertThat(groovyPlugin.getExecutions()).hasSize(1);
|
||||
|
@ -50,7 +50,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<version>1.8.1</version>
|
||||
<version>1.11.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
@ -44,7 +44,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<version>1.8.1</version>
|
||||
<version>1.11.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
@ -44,7 +44,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<version>1.8.1</version>
|
||||
<version>1.11.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
@ -50,7 +50,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<version>1.8.1</version>
|
||||
<version>1.11.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
Loading…
Reference in New Issue
Block a user