Skip to content

Commit

Permalink
Delete constant version
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFran committed Feb 3, 2022
1 parent 1ee50f6 commit be0b2c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

public class SpringDoc {

private static final String SPRING_DOC_VERSION = "1.6.4";

private SpringDoc() {}

public static Dependency springDocDependency() {
Expand All @@ -16,8 +14,4 @@ public static Dependency springDocDependency() {
.version("\\${springdoc-openapi-ui.version}")
.build();
}

public static String springDocVersion() {
return SPRING_DOC_VERSION;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,13 @@
import tech.jhipster.lite.TestUtils;
import tech.jhipster.lite.generator.project.domain.DefaultConfig;
import tech.jhipster.lite.generator.project.domain.Project;
import tech.jhipster.lite.generator.server.springboot.mvc.springdoc.domain.SpringDoc;

public class SpringDocAssert {

public static final String SPRING_DOC_CONFIG_JAVA_FILE_NAME = "SpringDocConfiguration.java";

public static void assertDependencies(Project project) {
TestUtils.assertFileContent(
project,
POM_XML,
List.of("<springdoc-openapi-ui.version>" + SpringDoc.springDocVersion() + "</springdoc-openapi-ui.version>")
);
TestUtils.assertFileContent(project, POM_XML, List.of("<springdoc-openapi-ui.version>"));
TestUtils.assertFileContent(
project,
POM_XML,
Expand Down

0 comments on commit be0b2c0

Please sign in to comment.