-
Notifications
You must be signed in to change notification settings - Fork 7
Add support for custom repositories per offering #212
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,14 @@ | ||
| import java.util.Set; | ||
|
|
||
| class GlobalConstants { | ||
|
|
||
| private GlobalConstants() { | ||
| } | ||
|
|
||
| static final String ICONS_ASSETS_URL = "/assets/icons"; | ||
|
|
||
| static final Set<String> TAGS = Set.of( | ||
| "with:starter-code", "status:stable", "status:preview", "status:experimental", "status:deprecated", | ||
| "support:full-support", "support:supported-in-jvm", "support:dev-support", "support:tech-preview", | ||
| "support:deprecated"); | ||
| } |
This file contains hidden or 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,69 @@ | ||
| import io.quarkus.code.model.Preset; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| class IBMConstants { | ||
|
|
||
| private IBMConstants() { | ||
| } | ||
|
|
||
| public static final List<Preset> IBM_PRESETS = List.of( | ||
| // Some presets are duplicated to support platforms before and after the Big Reactive Renaming | ||
| new Preset("rest-service", "REST service", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/rest-service.svg", | ||
| List.of("io.quarkus:quarkus-rest")), | ||
| new Preset("db-service", "REST service with database", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/db-service.svg", | ||
| List.of("io.quarkus:quarkus-rest", "io.quarkus:quarkus-rest-jackson", | ||
| "io.quarkus:quarkus-hibernate-orm-panache", "io.quarkus:quarkus-jdbc-postgresql")), | ||
| new Preset("event-driven-kafka", "Event driven service with Kafka", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/event-driven.svg", | ||
| List.of("io.quarkus:quarkus-messaging-kafka")), | ||
| new Preset("cli", "Command-line tool", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/cli.svg", | ||
| List.of("io.quarkus:quarkus-picocli")), | ||
| new Preset("webapp-mvc", "Web app with Model-View-Controller", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/webapp-mvc.svg", | ||
| List.of("io.quarkiverse.renarde:quarkus-renarde", "io.quarkiverse.web-bundler:quarkus-web-bundler")), | ||
| new Preset("webapp-npm", "Web app with NPM UI", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/webapp-npm.svg", | ||
| List.of("io.quarkus:quarkus-rest", "io.quarkus:quarkus-rest-jackson", | ||
| "io.quarkiverse.quinoa:quarkus-quinoa")), | ||
| new Preset("webapp-qute", "Web app with ServerSide Rendering", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/webapp-qute.svg", | ||
| List.of("io.quarkiverse.qute.web:quarkus-qute-web", "io.quarkiverse.web-bundler:quarkus-web-bundler")), | ||
| new Preset("ai-infused", "AI Infused service", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/ibm-presets/ai-infused.svg", | ||
| List.of("io.quarkiverse.langchain4j:quarkus-langchain4j-openai", | ||
| "io.quarkiverse.langchain4j:quarkus-langchain4j-easy-rag"))); | ||
|
|
||
| //language=xml | ||
| static final List<String> IBM_POM_REPOSITORIES = """ | ||
| <repositories> | ||
| <repository> | ||
| <id>ibm-enterprise-maven-repository</id> | ||
| <url>https://maven.repository.ibm.com/releases/</url> | ||
| <releases> | ||
| <enabled>true</enabled> | ||
| </releases> | ||
| <snapshots> | ||
| <enabled>true</enabled> | ||
| </snapshots> | ||
| </repository> | ||
| </repositories> | ||
| <pluginRepositories> | ||
| <pluginRepository> | ||
| <id>ibm-enterprise-maven-repository</id> | ||
| <url>https://maven.repository.ibm.com/releases/</url> | ||
| <releases> | ||
| <enabled>true</enabled> | ||
| </releases> | ||
| <snapshots> | ||
| <enabled>true</enabled> | ||
| </snapshots> | ||
| </pluginRepository> | ||
| </pluginRepositories> | ||
|
|
||
| """.lines().toList(); | ||
|
|
||
| } |
This file contains hidden or 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 hidden or 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,41 @@ | ||
| import io.quarkus.code.model.Preset; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public class RedHatCamelConstants { | ||
|
|
||
| private RedHatCamelConstants() { | ||
| } | ||
|
|
||
| static final List<Preset> REDHAT_CAMEL_PRESETS = List.of( | ||
| // Some presets are duplicated to support platforms before and after the Big Reactive Renaming | ||
| new Preset("web-service", "Web service", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/redhat-camel-presets/orange-rest_pos.svg", | ||
| List.of("org.apache.camel.quarkus:camel-quarkus-rest", | ||
| "org.apache.camel.quarkus:camel-quarkus-rest-openapi", | ||
| "org.apache.camel.quarkus:camel-quarkus-cxf-soap", | ||
| "io.quarkiverse.cxf:quarkus-cxf")), | ||
| new Preset("db-service", "REST service with database", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/redhat-camel-presets/orange-db-service_pos.svg", | ||
| List.of("org.apache.camel.quarkus:camel-quarkus-rest", | ||
| "org.apache.camel.quarkus:camel-quarkus-aws2-ddb", | ||
| "org.apache.camel.quarkus:camel-quarkus-cassandraql", | ||
| "org.apache.camel.quarkus:camel-quarkus-jdbc", | ||
| "org.apache.camel.quarkus:camel-quarkus-jpa", | ||
| "org.apache.camel.quarkus:camel-quarkus-kudu", | ||
| "org.apache.camel.quarkus:camel-quarkus-ldap", | ||
| "org.apache.camel.quarkus:camel-quarkus-mongodb", | ||
| "org.apache.camel.quarkus:camel-quarkus-mybatis", | ||
| "org.apache.camel.quarkus:camel-quarkus-sql")), | ||
| new Preset("event-driven-kafka", "Event driven service with Kafka", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/redhat-camel-presets/orange-event-driven-kafka_pos.svg", | ||
| List.of("org.apache.camel.quarkus:camel-quarkus-kafka", | ||
| "org.apache.camel.quarkus:camel-quarkus-jms")), | ||
| new Preset("ai-infused", "AI Infused service", | ||
| GlobalConstants.ICONS_ASSETS_URL + "/redhat-camel-presets/orange-ai-infused_pos.svg", | ||
| List.of("org.apache.camel.quarkus:camel-quarkus-langchain4j-agent", | ||
| "org.apache.camel.quarkus:camel-quarkus-langchain4j-chat", | ||
| "org.apache.camel.quarkus:camel-quarkus-langchain4j-tokenizer", | ||
| "org.apache.camel.quarkus:camel-quarkus-langchain4j-tools", | ||
| "org.apache.camel.quarkus:camel-quarkus-langchain4j-web-search"))); | ||
| } |
This file contains hidden or 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,38 @@ | ||
| import io.quarkus.code.model.Preset; | ||
ia3andy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| import java.util.List; | ||
|
|
||
| public class RedHatConstants { | ||
|
|
||
| private RedHatConstants() { | ||
| } | ||
|
|
||
| //language=xml | ||
| static final List<String> REDHAT_POM_REPOSITORIES = """ | ||
| <repositories> | ||
| <repository> | ||
| <id>red-hat-enterprise-maven-repository</id> | ||
| <url>https://maven.repository.redhat.com/ga/</url> | ||
| <releases> | ||
| <enabled>true</enabled> | ||
| </releases> | ||
| <snapshots> | ||
| <enabled>true</enabled> | ||
| </snapshots> | ||
| </repository> | ||
| </repositories> | ||
| <pluginRepositories> | ||
| <pluginRepository> | ||
| <id>red-hat-enterprise-maven-repository</id> | ||
| <url>https://maven.repository.redhat.com/ga/</url> | ||
| <releases> | ||
| <enabled>true</enabled> | ||
| </releases> | ||
| <snapshots> | ||
| <enabled>true</enabled> | ||
| </snapshots> | ||
| </pluginRepository> | ||
| </pluginRepositories> | ||
| """.lines().toList(); | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.