Skip to content

Commit 9824973

Browse files
authored
Merge pull request #423 from fugerit-org/422-bug-fj-doc-maven-plugin-when-adddocfacade-is-set-to-false-freemarker-verify-execution-gets-an-error
[fj-doc-maven-plugin] when 'addDocFacade' is set to 'false' 'freemark…
2 parents 75d07a1 + cfd0823 commit 9824973

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- quarkus-version set to 3.22.0 across all the modules <https://github.com/fugerit-org/fj-doc/pull/420>
1313

14+
### Fixed
15+
16+
- [fj-doc-maven-plugin] when 'addDocFacade' is set to 'false' 'freemarker-verify' execution gets an error <https://github.com/fugerit-org/fj-doc/pull/422>
17+
1418
## [8.13.8] - 2025-04-27
1519

1620
### Changed

fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/BasicVenusFacade.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ protected static void addExtensionGradleList( File gradleFile, VenusContext cont
197197
String gradleFileContent = FileIO.readString( gradleFile );
198198
String fjDocVersion = context.getVersion();
199199
if ( kts ) {
200-
String valVersion = String.format( "val fjDocVersion = \"%s\"\n\ndependencies", context.getVersion() );
200+
String valVersion = String.format( "val fjDocVersion = \"%s\"%n%ndependencies", context.getVersion() );
201201
gradleFileContent = gradleFileContent.replaceFirst( "dependencies", valVersion );
202202
fjDocVersion = "\\$fjDocVersion";
203203
}
@@ -270,7 +270,7 @@ private static void addVerifyPluginExecution( Model model, String id, String tem
270270

271271
private static void addVerifyPlugin(VenusContext context, Model model ) throws IOException {
272272
// addVerifyPlugin?
273-
if ( context.isAddVerifyPlugin() ) {
273+
if ( context.isAddVerifyPlugin() && context.isAddDocFacace() ) {
274274
if ( context.isVerifyPluginNotAvailable() ) {
275275
log.warn( "addVerifyPlugin skipped, version {} has been selected, minimum required version is : {}", context.getVersion(), VenusContext.VERSION_NA_VERIFY_PLUGIN );
276276
} else {

0 commit comments

Comments
 (0)