Skip to content

Commit

Permalink
Merge pull request #164 from quarkiverse/156-web-components-config-ve…
Browse files Browse the repository at this point in the history
…rsion-is-shared-between-dependencies

156 web components config version is shared between dependencies
  • Loading branch information
ChMThiel authored Feb 19, 2024
2 parents cfdf369 + dbac648 commit 8cefba6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
release:
current-version: "0.2.2"
current-version: "0.3.0"
next-version: "1.0.0-SNAPSHOT"

2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:project-version: 0.2.2
:project-version: 0.3.0

:examples-dir: ./../examples/
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,16 @@ String readFile(Format aFormat) {
}

String getHtml(RoutingContext aRoutingContext) {
String version = ConfigProvider.getConfig()
String webComponentVersion = ConfigProvider.getConfig()
.getValue("quarkus.asyncapi.annotation.scanner.webcomponentversion", String.class);
String webComponentJsVersion = ConfigProvider.getConfig()
.getValue("quarkus.asyncapi.annotation.scanner.webcomponentjsversion", String.class);
String reactComponentVersion = ConfigProvider.getConfig()
.getValue("quarkus.asyncapi.annotation.scanner.reactcomponentversion", String.class);
String rootPath = ConfigProvider.getConfig()
.getValue("quarkus.http.root-path", String.class);
//TODO logo
return String.format(HTML_PATTERN, version, version, version, rootPath, rootPath);
return String.format(HTML_PATTERN, webComponentJsVersion, webComponentVersion, reactComponentVersion, rootPath);
}

Format getFormat(RoutingContext aRoutingContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,22 @@ public class AsyncApiRuntimeConfig {
*
* @see https://www.npmjs.com/package/@asyncapi/react-component
*/
@ConfigItem(defaultValue = "1.0.0-next.48")
@ConfigItem(defaultValue = "1.2.25")
public String webcomponentversion;
/**
* Version of the ReasComponent to be used in html-view to be found at [HOST]/asyncapi.html
*
* @see https://www.npmjs.com/package/@asyncapi/react-component
*/
@ConfigItem(defaultValue = "1.2.25")
public String reactcomponentversion;
/**
* Version of the WebComponentJS to be used in html-view to be found at [HOST]/asyncapi.html
*
* @see https://www.npmjs.com/package/@webcomponents/webcomponentsjs
*/
@ConfigItem(defaultValue = "2.8.0")
public String webcomponentjsversion;

/**
* Full qualified name of the implementing AsyncApiFilter
Expand Down

0 comments on commit 8cefba6

Please sign in to comment.