Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0.Final backports 5 #18079

Merged
merged 24 commits into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7c9674e
Add info about Logger into OpenTracing guide
kshpak Jun 17, 2021
07bdcc2
Mutiny Vert.x bindings upgrade to 2.7.0
jponge Jun 17, 2021
b1126c1
Update to Keycloak 14.0.0
sberyozkin Jun 21, 2021
6409a01
Remove JDK 8 from the README badge
gastaldi Jun 21, 2021
c47c9b4
Force locale for Hibernate ORM REST Data Panache tests
gsmet Jun 21, 2021
1aeb763
Set the compilation target to JDK 11
m1ngyuan Jun 21, 2021
051cbc7
CLI: Change default short option to display version from "-V" to "-v"
Sgitario Jun 2, 2021
150e36c
Export maven.repo.local for gradle tests
glefloch Jun 2, 2021
866188f
Use main.java for JBang projects
ebullient Jun 1, 2021
b3a502f
Export maven.repo.local property for Jbang cli tests
glefloch Jun 7, 2021
a3af9a0
Export JBANG_REPO env variable for release test ci job
glefloch Jun 17, 2021
a5b4840
CLI: more -D support; don't set user.dir
ebullient Jun 18, 2021
dbdd6ca
CLI: Use -S & -P; error on --stream --no-registry-client
ebullient Jun 18, 2021
8374ade
consistent message emoji
ebullient Jun 18, 2021
332d304
Continuous testing fixes
stuartwdouglas Jun 21, 2021
37d5f84
Ensure @QuarkusTest works with @Nested and test lifecycle methods
geoand Jun 18, 2021
0397af8
Scheduler - fix a regression in validation
mkouba Jun 22, 2021
fd5f490
Register the fields of the ChangeStreamDocument for reflection
loicmathieu Jun 22, 2021
6b02a4c
gRPC: fix request context propagation
michalszynkiewicz Jun 16, 2021
4420b9d
Scala 2.12 does not support a JDK 11 target
gsmet Jun 22, 2021
1ff213a
Add a resource exemple to the MongoDB and Hibernate OMR guides
loicmathieu Jun 22, 2021
42e459c
Document the limitation of log message indexing
loicmathieu Jun 22, 2021
bfb72b3
Exclude JUnit 4
stuartwdouglas Jun 17, 2021
65ed15c
Generic signature reconstruction for methods
Ladicek Jun 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
if: github.repository == 'quarkusio/quarkus'
env:
MAVEN_OPTS: -Xmx2048m -XX:MaxMetaspaceSize=1000m
JBANG_REPO: $HOME/release/repository
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![GitHub Actions Status](<https://img.shields.io/github/workflow/status/QuarkusIO/quarkus/Quarkus CI?logo=GitHub&style=for-the-badge>)](https://github.com/quarkusio/quarkus/actions?query=workflow%3A%22Quarkus+CI%22)
[![License](https://img.shields.io/github/license/quarkusio/quarkus?style=for-the-badge&logo=apache)](https://www.apache.org/licenses/LICENSE-2.0)
[![Project Chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg?style=for-the-badge&logo=zulip)](https://quarkusio.zulipchat.com/)
[![Supported JVM Versions](https://img.shields.io/badge/JVM-8--11--16-brightgreen.svg?style=for-the-badge&logo=Java)](https://github.com/quarkusio/quarkus/actions/runs/113853915/)
[![Supported JVM Versions](https://img.shields.io/badge/JVM-11--16-brightgreen.svg?style=for-the-badge&logo=Java)](https://github.com/quarkusio/quarkus/actions/runs/113853915/)

# Quarkus - Supersonic Subatomic Java

Expand Down
18 changes: 12 additions & 6 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
<smallrye-jwt.version>3.2.0</smallrye-jwt.version>
<smallrye-context-propagation.version>1.2.0</smallrye-context-propagation.version>
<smallrye-reactive-streams-operators.version>1.0.13</smallrye-reactive-streams-operators.version>
<smallrye-reactive-utils.version>2.6.0</smallrye-reactive-utils.version>
<smallrye-reactive-types-converter.version>2.6.0</smallrye-reactive-types-converter.version>
<smallrye-reactive-utils.version>2.7.0</smallrye-reactive-utils.version>
<smallrye-reactive-messaging.version>3.5.0</smallrye-reactive-messaging.version>
<jakarta.activation.version>1.2.1</jakarta.activation.version>
<jakarta.annotation-api.version>1.3.5</jakarta.annotation-api.version>
Expand Down Expand Up @@ -87,7 +88,7 @@
<plexus-component-annotations.version>2.1.0</plexus-component-annotations.version>
<!-- What we actually depend on for the annotations, as latest Graal is not available in Maven fast enough: -->
<graal-sdk.version>21.1.0</graal-sdk.version>
<gizmo.version>1.0.8.Final</gizmo.version>
<gizmo.version>1.0.9.Final</gizmo.version>
<jackson.version>2.12.3</jackson.version>
<commons-logging-jboss-logging.version>1.0.0.Final</commons-logging-jboss-logging.version>
<commons-lang3.version>3.12.0</commons-lang3.version>
Expand Down Expand Up @@ -187,7 +188,7 @@
<jna.version>5.3.1</jna.version><!-- should satisfy both testcontainers and mongodb -->
<antlr.version>4.8</antlr.version>
<quarkus-security.version>1.1.4.Final</quarkus-security.version>
<keycloak.version>12.0.4</keycloak.version>
<keycloak.version>14.0.0</keycloak.version>
<logstash-gelf.version>1.14.1</logstash-gelf.version>
<jsch.version>0.1.55</jsch.version>
<jzlib.version>1.1.3</jzlib.version>
Expand Down Expand Up @@ -370,6 +371,11 @@
<artifactId>quarkus-development-mode-spi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit4-mock</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-class-change-agent</artifactId>
Expand Down Expand Up @@ -4831,17 +4837,17 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-converter-api</artifactId>
<version>${smallrye-reactive-utils.version}</version>
<version>${smallrye-reactive-types-converter.version}</version>
</dependency>
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-converter-mutiny</artifactId>
<version>${smallrye-reactive-utils.version}</version>
<version>${smallrye-reactive-types-converter.version}</version>
</dependency>
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-converter-rxjava2</artifactId>
<version>${smallrye-reactive-utils.version}</version>
<version>${smallrye-reactive-types-converter.version}</version>
</dependency>

<dependency>
Expand Down
4 changes: 3 additions & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

<!-- The image to use for tests that run Keycloak -->
<!-- IMPORTANT: If this is changed you must also update bom/application/pom.xml to match the version -->
<keycloak.docker.image>quay.io/keycloak/keycloak:12.0.3</keycloak.docker.image>
<keycloak.docker.image>quay.io/keycloak/keycloak:14.0.0</keycloak.docker.image>

<unboundid-ldap.version>4.0.13</unboundid-ldap.version>

Expand Down Expand Up @@ -494,11 +494,13 @@
<exclude>io.quarkus:quarkus-test-*</exclude>
<exclude>io.rest-assured:*</exclude>
<exclude>org.assertj:*</exclude>
<exclude>junit:junit</exclude>
</excludes>
<includes>
<include>io.quarkus:quarkus-test-*:*:*:test</include>
<include>io.rest-assured:*:*:*:test</include>
<include>org.assertj:*:*:*:test</include>
<include>junit:junit:*:*:test</include>
</includes>
<message>Found test dependencies with wrong scope:</message>
</bannedDependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public class AeshConsole extends QuarkusConsole {
private Size size;
private Attributes attributes;

private String statusMessage;
private String promptMessage;
private String[] messages = new String[0];
private int totalStatusLines = 0;
private int lastWriteCursorX;
/**
Expand Down Expand Up @@ -60,27 +59,6 @@ public void run() {
}, "Console Shutdown Hoot"));
}

private AeshConsole setStatusMessage(String statusMessage) {
synchronized (this) {
StringBuilder buffer = new StringBuilder();
clearStatusMessages(buffer);
int newLines = countLines(statusMessage) + countLines(promptMessage);
if (statusMessage == null) {
if (promptMessage != null) {
newLines += 2;
}
} else if (promptMessage == null) {
newLines += 2;
} else {
newLines += 3;
}
this.statusMessage = statusMessage;
updatePromptOnChange(buffer, newLines);
}
deadlockSafeWrite();
return this;
}

private void updatePromptOnChange(StringBuilder buffer, int newLines) {
if (newLines > totalStatusLines) {
StringBuilder nb = new StringBuilder();
Expand All @@ -106,29 +84,41 @@ public AeshInputHolder createHolder(InputHandler inputHandler) {
}

private AeshConsole setPromptMessage(String promptMessage) {
if (!inputSupport) {
return this;
}
setMessage(0, promptMessage);
return this;
}

private AeshConsole setMessage(int position, String message) {
synchronized (this) {
if (!inputSupport) {
return this;
if (messages.length <= position) {
String[] old = messages;
messages = new String[position + 1];
System.arraycopy(old, 0, this.messages, 0, old.length);
}
messages[position] = message;
int newLines = countTotalStatusLines();
StringBuilder buffer = new StringBuilder();
clearStatusMessages(buffer);
int newLines = countLines(statusMessage) + countLines(promptMessage);
if (statusMessage == null) {
if (promptMessage != null) {
newLines += 2;
}
} else if (promptMessage == null) {
newLines += 2;
} else {
newLines += 3;
}
this.promptMessage = promptMessage;
updatePromptOnChange(buffer, newLines);
}
deadlockSafeWrite();
return this;
}

private int countTotalStatusLines() {
int total = 0;
for (String i : messages) {
if (i != null) {
total++;
total += countLines(i);
}
}
return total == 0 ? total : total + 1;
}

private void end(Connection conn) {
conn.setAttributes(attributes);
StringBuilder sb = new StringBuilder();
Expand Down Expand Up @@ -227,15 +217,21 @@ private void printStatusAndPrompt(StringBuilder buffer) {
bottomBlankSpace = 0;
}
buffer.append("\n--\n");
if (statusMessage != null) {
buffer.append(statusMessage);
if (promptMessage != null) {
buffer.append("\n");
for (int i = messages.length - 1; i >= 0; --i) {
String msg = messages[i];
if (msg != null) {
buffer.append(msg);
if (i > 0) {
//if there is any more messages to print we add a newline
for (int j = 0; j < i; ++j) {
if (messages[j] != null) {
buffer.append("\n");
break;
}
}
}
}
}
if (promptMessage != null) {
buffer.append(promptMessage);
}
}

private void clearStatusMessages(StringBuilder buffer) {
Expand Down Expand Up @@ -352,13 +348,27 @@ protected AeshInputHolder(InputHandler handler) {

@Override
protected void setPromptMessage(String prompt) {
AeshConsole.this.setPromptMessage(prompt);
if (!inputSupport) {
return;
}
setMessage(0, prompt);
}

@Override
protected void setResultsMessage(String results) {
setMessage(1, results);
}

@Override
protected void setCompileErrorMessage(String results) {
setMessage(3, results);
}

@Override
protected void setStatusMessage(String status) {
AeshConsole.this.setStatusMessage(status);
setMessage(2, status);

}

}
}
Loading