diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e1aae0..0be3ac38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - quarkus-version set to 3.22.0 across all the modules +### Fixed + +- [fj-doc-maven-plugin] when 'addDocFacade' is set to 'false' 'freemarker-verify' execution gets an error + ## [8.13.8] - 2025-04-27 ### Changed diff --git a/fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/BasicVenusFacade.java b/fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/BasicVenusFacade.java index df191cee..df50a8ea 100644 --- a/fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/BasicVenusFacade.java +++ b/fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/BasicVenusFacade.java @@ -197,7 +197,7 @@ protected static void addExtensionGradleList( File gradleFile, VenusContext cont String gradleFileContent = FileIO.readString( gradleFile ); String fjDocVersion = context.getVersion(); if ( kts ) { - String valVersion = String.format( "val fjDocVersion = \"%s\"\n\ndependencies", context.getVersion() ); + String valVersion = String.format( "val fjDocVersion = \"%s\"%n%ndependencies", context.getVersion() ); gradleFileContent = gradleFileContent.replaceFirst( "dependencies", valVersion ); fjDocVersion = "\\$fjDocVersion"; } @@ -270,7 +270,7 @@ private static void addVerifyPluginExecution( Model model, String id, String tem private static void addVerifyPlugin(VenusContext context, Model model ) throws IOException { // addVerifyPlugin? - if ( context.isAddVerifyPlugin() ) { + if ( context.isAddVerifyPlugin() && context.isAddDocFacace() ) { if ( context.isVerifyPluginNotAvailable() ) { log.warn( "addVerifyPlugin skipped, version {} has been selected, minimum required version is : {}", context.getVersion(), VenusContext.VERSION_NA_VERIFY_PLUGIN ); } else {