Skip to content

Commit

Permalink
Config Doc - Reinstate Reactive Oracle Client doc
Browse files Browse the repository at this point in the history
In the end, let's keep it around but handles it properly in the
generated config doc.
  • Loading branch information
gsmet committed Sep 10, 2024
1 parent c1ab892 commit ac75ce9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
*/
@Mojo(name = "generate-asciidoc", defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true)
public class GenerateAsciidocMojo extends GenerateConfigDocMojo {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
String topLevelPrefix = configRootEntry.getKey().topLevelPrefix();
ConfigRoot configRoot = configRootEntry.getValue();

if (configRoot.getNonDeprecatedItems().isEmpty()) {
continue;
}
// here we generate a file even if there are no items as it's used for the Reactive Oracle SQL client

configRootPath = resolvedTargetDirectory.resolve(String.format(CONFIG_ROOT_FILE_FORMAT,
extension.artifactId(), topLevelPrefix, normalizedFormat.getExtension()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ h|Default
{#configProperty configProperty=item extension=extension additionalAnchorPrefix=additionalAnchorPrefix /}

{/if}
{#else}
3+|No configuration properties found.

{/for}
|===

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/datasource.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ include::{generated-dir}/config/quarkus-reactive-mssql-client.adoc[opts=optional

==== Reactive Oracle-specific configuration

At the moment, there are no Oracle-specific configuration properties.
include::{generated-dir}/config/quarkus-reactive-oracle-client.adoc[opts=optional, leveloffset=+1]

==== Reactive PostgreSQL-specific configuration

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/reactive-sql-clients.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ include::{generated-dir}/config/quarkus-reactive-mssql-client.adoc[opts=optional

=== Oracle

At the moment, there are no Oracle-specific configuration properties.
include::{generated-dir}/config/quarkus-reactive-oracle-client.adoc[opts=optional, leveloffset=+1]

=== PostgreSQL

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
@ConfigGroup
public interface DataSourceReactiveOracleConfig {

// when adding properties here, make sure you include the generated doc in datasource.adoc and reactive-sql-clients.adoc
}

0 comments on commit ac75ce9

Please sign in to comment.