Skip to content

Commit

Permalink
Simplify logic in create-app.adoc and allow to define stream
Browse files Browse the repository at this point in the history
The idea is to define the stream value for older versions so that people
can create apps for these versions by running the command.
  • Loading branch information
gsmet committed Jan 20, 2023
1 parent 15065dd commit c91db77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
2 changes: 2 additions & 0 deletions docs/src/main/asciidoc/_attributes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@
:vault-datasource-guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-vault/dev/vault-datasource.html
:micrometer-registry-guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-micrometer-registry/dev/index.html
// .
:create-app-group-id: org.acme
// .
include::_attributes-local.adoc[]
22 changes: 9 additions & 13 deletions docs/src/main/asciidoc/_includes/devtools/create-app.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,27 @@
****
[source,bash,subs=attributes+]
----
ifdef::create-app-group-id[]
ifdef::create-app-extensions[]
ifdef::create-app-extensions,create-app-stream[]
quarkus create app {create-app-group-id}:{create-app-artifact-id} \
endif::[]
ifndef::create-app-extensions[]
ifndef::create-app-extensions,create-app-stream[]
ifndef::create-app-code[]
quarkus create app {create-app-group-id}:{create-app-artifact-id} \
endif::[]
ifdef::create-app-code[]
quarkus create app {create-app-group-id}:{create-app-artifact-id}
endif::[]
endif::[]
endif::[]
ifndef::create-app-group-id[]
ifdef::create-app-stream[]
ifdef::create-app-extensions[]
quarkus create app org.acme:{create-app-artifact-id} \
--stream={create-app-stream} \
endif::[]
ifndef::create-app-extensions[]
ifndef::create-app-code[]
quarkus create app org.acme:{create-app-artifact-id} \
--stream={create-app-stream} \
endif::[]
ifdef::create-app-code[]
quarkus create app org.acme:{create-app-artifact-id}
--stream={create-app-stream}
endif::[]
endif::[]
endif::[]
Expand Down Expand Up @@ -63,12 +61,10 @@ _For more information about how to install the Quarkus CLI and use it, please re
[source,bash,subs=attributes+]
----
mvn io.quarkus.platform:quarkus-maven-plugin:{quarkus-version}:create \
ifdef::create-app-group-id[]
-DprojectGroupId={create-app-group-id} \
endif::[]
ifndef::create-app-group-id[]
-DprojectGroupId=org.acme \
ifdef::create-app-stream[]
-DplatformVersion={create-app-stream} \
endif::[]
-DprojectGroupId={create-app-group-id} \
ifdef::create-app-extensions[]
-DprojectArtifactId={create-app-artifact-id} \
endif::[]
Expand Down

0 comments on commit c91db77

Please sign in to comment.