From 48c69572ac527f5794e96642fec2b936c94e3041 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Thu, 19 Dec 2024 04:45:59 +0000 Subject: [PATCH] polish --- .github/labeler.yml | 2 +- boot-strategy-plugin/pom.xml | 6 ++++++ .../com/example/plugin/strategyplugin/plugin/CSVWriter.java | 3 ++- .../com/example/plugin/strategyplugin/plugin/PDFWriter.java | 3 ++- pom.xml | 1 + 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 6a19b097d..70bedad96 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -129,7 +129,7 @@ - boot-opensearch-sample/pom.xml - boot-rabbitmq-thymeleaf/pom.xml - boot-rest-docs-sample/pom.xml - - boot-strategy-plugin/build.gradle + - boot-strategy-plugin/pom.xml - boot-togglz-sample/pom.xml - boot-ultimate-redis/pom.xml - graphql/boot-graphql-querydsl/pom.xml diff --git a/boot-strategy-plugin/pom.xml b/boot-strategy-plugin/pom.xml index be9316f85..181949de0 100644 --- a/boot-strategy-plugin/pom.xml +++ b/boot-strategy-plugin/pom.xml @@ -88,6 +88,12 @@ org.springframework.boot spring-boot-maven-plugin + + + ghcr.io/${project.artifactId}:${project.version} + + IF_NOT_PRESENT + org.graalvm.buildtools diff --git a/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/CSVWriter.java b/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/CSVWriter.java index a271a361e..c22ce4f6c 100644 --- a/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/CSVWriter.java +++ b/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/CSVWriter.java @@ -2,6 +2,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.lang.NonNull; import org.springframework.stereotype.Component; import com.example.plugin.strategyplugin.domain.GenericDTO; @@ -18,7 +19,7 @@ public GenericDTO write(String message) { } @Override - public boolean supports(String delimiter) { + public boolean supports(@NonNull String delimiter) { return delimiter.equalsIgnoreCase("csv"); } } diff --git a/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/PDFWriter.java b/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/PDFWriter.java index bb97ef0e1..da9dc089d 100644 --- a/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/PDFWriter.java +++ b/boot-strategy-plugin/src/main/java/com/example/plugin/strategyplugin/plugin/PDFWriter.java @@ -2,6 +2,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.lang.NonNull; import org.springframework.stereotype.Component; import com.example.plugin.strategyplugin.domain.GenericDTO; @@ -18,7 +19,7 @@ public GenericDTO write(String message) { } @Override - public boolean supports(String delimiter) { + public boolean supports(@NonNull String delimiter) { return delimiter.equalsIgnoreCase("pdf"); } } diff --git a/pom.xml b/pom.xml index 0ff913203..8001481ee 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,7 @@ boot-opensearch-sample boot-rabbitmq-thymeleaf boot-rest-docs-sample + boot-strategy-plugin boot-togglz-sample boot-ultimate-redis graphql/boot-graphql-querydsl