Update Gradle to 7.2
Closes gh-9615
This commit is contained in:
committed by
Marcus Hert Da Coregio
parent
7d81a52780
commit
d2e5f2ae0d
@@ -55,19 +55,6 @@ public class SpringMavenPluginITest {
|
||||
assertThat(signature).exists();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void upload() throws Exception {
|
||||
BuildResult result = this.testKit.withProjectResource("samples/maven/upload")
|
||||
.withArguments("uploadArchives")
|
||||
.forwardOutput()
|
||||
.build();
|
||||
assertThat(result.getOutput()).contains("SUCCESS");
|
||||
File pom = new File(testKit.getRootDir(), "build/poms/pom-default.xml");
|
||||
assertThat(pom).exists();
|
||||
String pomText = new String(Files.readAllBytes(pom.toPath()));
|
||||
assertThat(pomText.replaceAll("\\s", "")).contains("<dependency>\n <groupId>aopalliance</groupId>\n <artifactId>aopalliance</artifactId>\n <version>1.0</version>\n <scope>compile</scope>\n <optional>true</optional>\n </dependency>".replaceAll("\\s", ""));
|
||||
}
|
||||
|
||||
public String getSigningKey() throws Exception {
|
||||
return IOUtils.toString(getClass().getResource("/test-private.pgp"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user