-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 #18173 from aloubyansky/expose-platform-info
Expose collected platform info through the AppModel
- Loading branch information
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...rojects/bootstrap/app-model/src/main/java/io/quarkus/bootstrap/model/PlatformImports.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 |
---|---|---|
@@ -1,12 +1,43 @@ | ||
package io.quarkus.bootstrap.model; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
public interface PlatformImports { | ||
|
||
/** | ||
* Quarkus platform properties aggregated from all the platform an application is based on. | ||
* | ||
* @return aggregated platform properties | ||
*/ | ||
public Map<String, String> getPlatformProperties(); | ||
|
||
/** | ||
* Quarkus platform release information. | ||
* | ||
* @return platform release information | ||
*/ | ||
Collection<PlatformReleaseInfo> getPlatformReleaseInfo(); | ||
|
||
/** | ||
* All the Quarkus platform BOMs imported by an application. | ||
* | ||
* @return all the Quarkus platform BOMs imported by an application | ||
*/ | ||
Collection<AppArtifactCoords> getImportedPlatformBoms(); | ||
|
||
/** | ||
* In case Quarkus platform member BOM imports were misaligned this method | ||
* will return a detailed information about what was found to be in conflict. | ||
* | ||
* @return platform member BOM misalignment report or null, in case no conflict was detected | ||
*/ | ||
public String getMisalignmentReport(); | ||
|
||
/** | ||
* Checks whether the platform member BOM imports belong to the same platform release. | ||
* | ||
* @return true if imported platform member BOMs belong to the same platform release, otherwise - false | ||
*/ | ||
public boolean isAligned(); | ||
} |
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