Skip to content

Commit ea28d99

Browse files
committed
Fix deprecation warnings
1 parent 5d205cf commit ea28d99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

start-site/src/test/java/io/spring/start/site/extension/dependency/springrestdocs/SpringRestDocsMavenBuildCustomizerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@ void customizesGradleBuild() {
4141
assertThat(build.plugins().values()).singleElement().satisfies((plugin) -> {
4242
assertThat(plugin.getGroupId()).isEqualTo("org.asciidoctor");
4343
assertThat(plugin.getArtifactId()).isEqualTo("asciidoctor-maven-plugin");
44-
assertThat(plugin.getVersion()).isEqualTo("2.2.1");
44+
assertThat(plugin.getVersionReference().getValue()).isEqualTo("2.2.1");
4545
assertThat(plugin.getExecutions()).hasSize(1);
4646
Execution execution = plugin.getExecutions().get(0);
4747
assertThat(execution.getId()).isEqualTo("generate-docs");
@@ -60,7 +60,7 @@ void customizesGradleBuild() {
6060
Dependency dependency = plugin.getDependencies().get(0);
6161
assertThat(dependency.getGroupId()).isEqualTo("org.springframework.restdocs");
6262
assertThat(dependency.getArtifactId()).isEqualTo("spring-restdocs-asciidoctor");
63-
assertThat(dependency.getVersion()).isEqualTo("${spring-restdocs.version}");
63+
assertThat(dependency.getVersionReference().getValue()).isEqualTo("${spring-restdocs.version}");
6464
});
6565
}
6666

0 commit comments

Comments
 (0)