-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44390 from gsmet/better-deployment-detection
Fix runtime/deployment detection and propagate it
- Loading branch information
Showing
4 changed files
with
74 additions
and
33 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
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
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