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"));
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ plugins {
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'propdeps'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -2,7 +2,6 @@ plugins {
|
||||
id 'io.spring.convention.root'
|
||||
}
|
||||
|
||||
apply plugin: 'propdeps-maven'
|
||||
apply plugin: 'io.spring.convention.maven'
|
||||
|
||||
repositories {
|
||||
|
||||
@@ -4,7 +4,6 @@ plugins {
|
||||
|
||||
version = "1.0.0.RELEASE"
|
||||
|
||||
apply plugin: 'propdeps-maven'
|
||||
apply plugin: 'io.spring.convention.maven'
|
||||
|
||||
repositories {
|
||||
|
||||
@@ -2,8 +2,6 @@ plugins {
|
||||
id 'io.spring.convention.root'
|
||||
}
|
||||
|
||||
apply plugin: 'propdeps-maven'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
|
||||
dependencies {
|
||||
management platform('org.springframework.boot:spring-boot-dependencies:2.5.2')
|
||||
compile 'org.springframework:spring-web'
|
||||
compile 'org.springframework:spring-core'
|
||||
api platform('org.springframework.boot:spring-boot-dependencies:2.5.2')
|
||||
implementation 'org.springframework:spring-web'
|
||||
implementation 'org.springframework:spring-core'
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-engine"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apply plugin: 'io.spring.convention.spring-module'
|
||||
|
||||
dependencies {
|
||||
management platform('org.springframework.boot:spring-boot-dependencies:2.5.2')
|
||||
api platform('org.springframework.boot:spring-boot-dependencies:2.5.2')
|
||||
optional 'ch.qos.logback:logback-classic'
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-engine"
|
||||
|
||||
@@ -5,6 +5,6 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testCompile project(path: ':core', configuration: 'tests')
|
||||
testCompile 'junit:junit:4.12'
|
||||
testImplementation project(path: ':core', configuration: 'tests')
|
||||
testImplementation 'junit:junit:4.12'
|
||||
}
|
||||
Reference in New Issue
Block a user