forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into datasource-devservices-showLogs-squashed
- Loading branch information
Showing
135 changed files
with
2,820 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
= Structure for Quarkus Workshops | ||
|
||
* Status: _Accepted_ | ||
* Date: 2024-11-06 | ||
* Authors: @cescoffier | ||
== Context and Problem Statement | ||
|
||
Since the public release of Quarkus, we launched a hands-on workshop to help developers get started with it. | ||
Known as the "Quarkus Superheroes" workshop, this workshop allowed developers to learn Quarkus by actively writing and running code in a structured environment, often at conferences or in classroom settings. | ||
|
||
The "Quarkus Superheroes" workshop has been highly successful, delivered at various conferences and widely used by developers for self-study. | ||
At the time, we anticipated additional workshops, leading us to establish a dedicated structure within a single repository: Quarkus Workshops (https://github.com/quarkusio/quarkus-workshops). | ||
|
||
The initial (and still existing) structure was straightforward: | ||
|
||
[source] | ||
---- | ||
. | ||
├── README.md | ||
└── quarkus-workshop-super-heroes/ | ||
├── dist | ||
├── docs | ||
├── super-heroes | ||
├── README.adoc | ||
└── pom.xml | ||
---- | ||
|
||
Although this structure was meant to support multiple workshops, only the "Quarkus Superheroes" workshop was added. | ||
Instead of separate workshops, we expanded this initial workshop with additional steps and features. | ||
|
||
As we now develop new workshops on various topics, we face limitations with the single repository structure. | ||
For example, the Quarkus LangChain4J workshop was created separately to demonstrate Quarkus LangChain4J usage, yet it isn’t integrated into the main workshop repository. | ||
Additionally, having a single repository complicates using GitHub Pages for documentation. | ||
|
||
Given the current and future workshops, it’s essential to reconsider the structure to allow easier management and discoverability of each workshop. | ||
|
||
== Proposed New Structure | ||
|
||
Our experience shows that hosting all workshops in one repository isn’t optimal. We propose a new structure as follows: | ||
|
||
1. Each workshop will be hosted in its own repository. | ||
This simplifies management, avoids conflicts in `README` and documentation setup, and improves workshop discoverability. | ||
2. Naming convention: Each workshop repository should follow the format `quarkus-workshop-<topic>`, where `<topic>` represents the workshop subject (e.g., `quarkus-workshop-superheroes`, `quarkus-workshop-langchain4j`). | ||
3. Documentation should be hosted with GitHub Pages in each repository, making each workshop more accessible. | ||
4. Each workshop repository should have the `workshop` topic to facilitate discoverability. | ||
5. We will keep https://quarkus.io/quarkus-workshops/ as a landing page, which people can use to find workshops. | ||
In order to preserve the GitHub history, the quarkus-workshops repository should be renamed to https://quarkus.io/quarkus-workshop-superheroes, and then a new repository should be created, using the old name, `quarkus-workshops`. | ||
6. This _landing_ repository can also be used to host redirects. For example, the existing URL https://quarkus.io/quarkus-workshops/super-heroes/ should be kept valid by using a redirect. | ||
|
||
== Considered Options | ||
|
||
=== Option 1: Continue with the current single-repository approach | ||
|
||
This would mean keeping all workshops under the existing repository. | ||
However, as observed, this approach has not met expectations and makes workshop management more challenging. | ||
|
||
=== Option 2: Create a separate organization for workshops | ||
|
||
A dedicated organization could host all workshops, offering a single access point. | ||
However, this approach could reduce discoverability, but would not use the Quarkus organization’s CI resources. | ||
CI resource usage is minor, as workshops are not frequently updated. | ||
|
||
== Consequences | ||
|
||
=== Positive | ||
|
||
* Simplified workshop management. | ||
* Greater autonomy for workshop maintainers. | ||
* Consolidation of workshops previously hosted in separate repositories. | ||
|
||
=== Negative | ||
|
||
* Lack of a central place to list all workshops. This could be mitigated by creating a dedicated page on the Quarkus website. | ||
* Potential CI resource shortage as each workshop repository uses _quarkusio_ organization CI resources. | ||
However, this is unlikely to be a significant issue, as, generally, workshops don't use much CI resources. | ||
That being said, it would require monitoring to ensure it doesn't become a problem. | ||
|
||
=== Neutral | ||
|
||
* Existing workshops would need restructuring to align with the new approach, especially the Quarkus Superheroes workshop. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
core/deployment/src/main/java/io/quarkus/deployment/builditem/LogSocketFormatBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package io.quarkus.deployment.builditem; | ||
|
||
import java.util.Optional; | ||
import java.util.logging.Formatter; | ||
|
||
import org.wildfly.common.Assert; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
import io.quarkus.runtime.RuntimeValue; | ||
|
||
/** | ||
* The socket format build item. Producing this item will cause the logging subsystem to disregard its | ||
* socket logging formatting configuration and use the formatter provided instead. If multiple formatters | ||
* are enabled at runtime, a warning message is printed and only one is used. | ||
*/ | ||
public final class LogSocketFormatBuildItem extends MultiBuildItem { | ||
private final RuntimeValue<Optional<Formatter>> formatterValue; | ||
|
||
/** | ||
* Construct a new instance. | ||
* | ||
* @param formatterValue the optional formatter runtime value to use (must not be {@code null}) | ||
*/ | ||
public LogSocketFormatBuildItem(final RuntimeValue<Optional<Formatter>> formatterValue) { | ||
this.formatterValue = Assert.checkNotNullParam("formatterValue", formatterValue); | ||
} | ||
|
||
/** | ||
* Get the formatter value. | ||
* | ||
* @return the formatter value | ||
*/ | ||
public RuntimeValue<Optional<Formatter>> getFormatterValue() { | ||
return formatterValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...main/java/io/quarkus/annotation/processor/documentation/config/model/ExtensionModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.quarkus.annotation.processor.documentation.config.model; | ||
|
||
public record ExtensionModule(String groupId, String artifactId, ExtensionModuleType type, Extension extension, | ||
boolean detected) { | ||
|
||
public static ExtensionModule createNotDetected() { | ||
return new ExtensionModule("not.detected", "not.detected", ExtensionModuleType.UNKNOWN, Extension.createNotDetected(), | ||
false); | ||
} | ||
|
||
public static ExtensionModule of(String groupId, String artifactId, ExtensionModuleType type, Extension extension) { | ||
return new ExtensionModule(groupId, artifactId, type, extension, true); | ||
} | ||
|
||
public enum ExtensionModuleType { | ||
RUNTIME, | ||
DEPLOYMENT, | ||
UNKNOWN; | ||
} | ||
} |
13 changes: 9 additions & 4 deletions
13
core/processor/src/main/java/io/quarkus/annotation/processor/util/Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.