Skip to content

Commit f28db27

Browse files
author
Adrian Clay
authored
Fix deprecation warnings (#595)
* Move LocalServerPort to new namespace as of Spring Boot 2.7 * Gradle `main` property has been deprecated in favour of `mainClass`
1 parent 2c96409 commit f28db27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

service/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ sourceSets {
124124
}
125125

126126
task(interoperabilityTestingToolJsonToXml, dependsOn: 'classes', type: JavaExec) {
127-
main = 'uk.nhs.adaptors.gp2gp.transformjsontoxmltool.TransformJsonToXml'
127+
mainClass.set('uk.nhs.adaptors.gp2gp.transformjsontoxmltool.TransformJsonToXml')
128128
classpath = sourceSets.main.runtimeClasspath
129129
}
130130

service/src/intTest/java/uk/nhs/adaptors/gp2gp/HealthCheckTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.junit.jupiter.api.Test;
77
import org.junit.jupiter.api.extension.ExtendWith;
88
import org.springframework.boot.test.context.SpringBootTest;
9-
import org.springframework.boot.web.server.LocalServerPort;
9+
import org.springframework.boot.test.web.server.LocalServerPort;
1010
import org.springframework.test.annotation.DirtiesContext;
1111
import org.springframework.test.context.junit.jupiter.SpringExtension;
1212
import org.springframework.web.reactive.function.client.WebClient;

0 commit comments

Comments
 (0)