Skip to content

Commit

Permalink
Updates version (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofthejars authored Jan 21, 2021
1 parent c581da0 commit c76fcde
Show file tree
Hide file tree
Showing 12 changed files with 843 additions and 13,972 deletions.
14,058 changes: 258 additions & 13,800 deletions docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/quarkus-cheat-sheet/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
:logo: quarkus.png
:version: 1.10.2.Final
:version: 1.11.0.Final
:source-highlighter: highlightjs
:sectlinks:
:linkattrs:
:sectanchors:
:toc: macro
:nofooter:
:pdf-download: https://github.com/lordofthejars/quarkus-cheat-sheet/releases/download/1.0.21/quarkus-cheat-sheet.pdf
:pdf-download: https://github.com/lordofthejars/quarkus-cheat-sheet/releases/download/1.0.22/quarkus-cheat-sheet.pdf
26 changes: 26 additions & 0 deletions examples/quarkus-cheat-sheet/cloud.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ quarkus.native.resources.includes=foo/**
----
// end::update_16_2[]

*Exclusion of resources*

// tag::update_22_8[]
By default, no resources are excluded.

[source, properties]
----
quarkus.native.resources.excludes = foo/**
----
// end::update_22_8[]

== Container Images Creation

// tag::update_14_22[]
Expand Down Expand Up @@ -167,6 +178,21 @@ A custom entry point of the container image in JVM mode.
A custom entry point of the container image in native mode.
// end::update_17_7[]

`labels`::
Custom labels to add to the generated image.

`base-registry-username`::
The username to use to authenticate with the registry used to pull the base JVM image.

`base-registry-password`::
The password to use to authenticate with the registry used to pull the base JVM image.

`ports`::
The ports to expose.

`user`::
The user to use in generated image.

*Docker*

[source, bash]
Expand Down
58 changes: 58 additions & 0 deletions examples/quarkus-cheat-sheet/core.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ Endpoints are registered automatically to provide some basic debug info in dev m
* `HTTP GET /quarkus/arc/observers`
// end::update_17_14[]

== Dev UI

// tag::update_22_11[]
Quarkus adds a Dev UI console to expose extension features.

The Dev UI is available in dev mode only and accessible at the `/q/dev` endpoint by default.
// end::update_22_11[]

== Adding Configuration Parameters

To add configuration to your application, Quarkus relies on https://github.com/eclipse/microprofile-config[MicroProfile Config, window="_blank"] spec.
Expand Down Expand Up @@ -413,6 +421,24 @@ String applicationName;
----
// end::update_13_7[]

*Additional locations*

// tag::update_22_5[]
You can use `smallrye.config.locations` property to set additional configuration files.

[source, properties]
----
smallrye.config.locations=config.properties
----

or

[source, bash]
----
java -jar -Dsmallrye.config.locations=config.properties
----
// end::update_22_5[]

// tag::update_9_1[]
*@ConfigProperties*

Expand Down Expand Up @@ -1199,6 +1225,26 @@ The queue length to use before flushing writing (default: `512`)
`syslog.async.overflow`::
Action when queue is full (default: `BLOCK`)

// tag::update_22_4[]
You can inject logger instance:

[source, java]
----
import org.jboss.logging.Logger;
import io.quarkus.arc.log.LoggerName;
@Inject
Logger log;
@LoggerName("foo")
Logger fooLog;
public void ping() {
log.info("Simple!");
}
----
// end::update_22_4[]

*Gelf ouput*
// tag::update_13_4[]

Expand Down Expand Up @@ -1242,6 +1288,18 @@ Name of the facility. (default: `jboss-logmanage`)

`handler.gelf.additional-field.<field>.<subfield>`::
Post additional fields. `quarkus.log.handler.gelf.additional-field.field1.type=String`

`handler.gelf.include-full-mdc`::
Include all fields from the MDC.

`handler.gelf.maximum-message-size`::
Maximum message size (in bytes). (default: `8192`)

`handler.gelf.include-log-message-parameters`::
Include message parameters from the log event. (default: `true`)

`handler.gelf.include-location`::
Include source code location. (default: `true`)
// end::update_13_4[]

*JSON output*
Expand Down
45 changes: 44 additions & 1 deletion examples/quarkus-cheat-sheet/misc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ Thread priority of worker threads in the pool. (default: `5`)

`force-start`::
The scheduler will be started even if no scheduled business methods are found.

`start-mode`::
Scheduler can be started in different modes: `normal`, `forced` or `halted`. (default: `normal`)
// end::update_19_5[]

== Qute
Expand Down Expand Up @@ -873,6 +876,34 @@ The next number methods are supported:
----
// end::update_14_27[]

*Switch/When*

// tag::update_22_3[]
[source, html]
----
{#switch person.name}
{#case 'John'}
Hey John!
{#case 'Mary'}
Hey Mary!
{/switch}
----

[source, html]
----
{#when items.size}
{#is 1} <1>
There is exactly one item!
{#is > 10} <2>
There are more than 10 items!
{#else} <3>
There are 2 -10 items!
{/when}
----

Following operators can be used either in `when` and `switch`: `not, ne, !=`, `gt, >`, `ge, >=`, `lt, <`, `le, \<=`, `in`, `ni, !in`.
// end::update_22_3[]

*Message Bundling*

// tag::update_20_5[]
Expand Down Expand Up @@ -1009,6 +1040,9 @@ Where to send events.
`sentry.level`::
Log level (default: `WARN`)

`sentry.server-name`::
Sets the server name that will be sent with each event.

`sentry.in-app-packages`::
Configure which package prefixes your application uses.
// end::update_12_10[]
Expand Down Expand Up @@ -1416,4 +1450,13 @@ To run the script:
----
jbang quarkusapp.java
----
// end::update_19_6[]
// end::update_19_6[]

// tag::update_22_6[]
A Maven goal is provided to scaffold a project:

[source, bash]
----
mvn io.quarkus:quarkus-maven-plugin:<version>:create-jbang
----
// end::update_22_6[]
15 changes: 14 additions & 1 deletion examples/quarkus-cheat-sheet/persistence.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ You can inject `EntityManager` in your classes:
@Inject
EntityManager em;
@Inject
org.hibernate.Session session;
@Inject
org.hibernate.SessionFactory sessionFactory;
em.persist(car);
----
// end::update_5_2[]
Expand Down Expand Up @@ -683,7 +689,7 @@ You can customize these defaults by using `@ResourceProperties` and `@MethodProp

[source, java]
----
@ResourceProperties(hal = true, path = "my-developer")
@ResourceProperties(hal = true, path = "my-developer", halCollectionName = "dev-collections")
public interface DeveloperResource extends PanacheEntityResource<Developer, Long> {
@MethodProperties(path = "all")
List<Developer> list();
Expand Down Expand Up @@ -1089,6 +1095,11 @@ Prefix of every placeholder (default: `${`)
Suffix of every placeholder (default: `}`)
// end::update_18_6[]

// tag::update_22_9[]
`callbacks`::
Comma-separated list of fully qualified class names of Callback implementations.
// end::update_22_9[]

*Multiple Datasources*
// tag::update_12_7[]

Expand Down Expand Up @@ -2345,6 +2356,8 @@ Quarkus integrates with Cassandra and DataStax Object Mapper.
</dependency>
----

<<<

Enities and DAOs are generated as you have been doing with DataStax Object Mapper.

You need to create a DaoProducer:
Expand Down
Loading

0 comments on commit c76fcde

Please sign in to comment.