-
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.
Clarify the contract of features and capabilities
- introduce enums for core extensions - validate duplicate features - deprecate capabilities constants - only extensions that use hard-coded string constants may be broken (due to introduction of naming conventions)
- Loading branch information
Showing
138 changed files
with
794 additions
and
414 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
59 changes: 59 additions & 0 deletions
59
core/deployment/src/main/java/io/quarkus/deployment/Capability.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,59 @@ | ||
package io.quarkus.deployment; | ||
|
||
/** | ||
* Represents a capability of a core extension. | ||
*/ | ||
public enum Capability { | ||
|
||
/** | ||
* A datasource connection pool implementation | ||
*/ | ||
AGROAL, | ||
/** | ||
* JSR 365 compatible contexts and dependency injection | ||
*/ | ||
CDI, | ||
/** | ||
* Java Servlet API | ||
*/ | ||
SERVLET, | ||
/** | ||
* Java Transaction API (JTA) | ||
*/ | ||
TRANSACTIONS, | ||
JACKSON, | ||
JSONB, | ||
REST_JACKSON, | ||
REST_JSONB, | ||
RESTEASY, | ||
RESTEASY_JSON, | ||
RESTEASY_MUTINY, | ||
JWT, | ||
TIKA, | ||
MONGODB_PANACHE, | ||
FLYWAY, | ||
LIQUIBASE, | ||
SECURITY, | ||
SECURITY_ELYTRON_OAUTH2, | ||
SECURITY_ELYTRON_JDBC, | ||
SECURITY_ELYTRON_LDAP, | ||
SECURITY_JPA, | ||
QUARTZ, | ||
METRICS, | ||
CONTAINER_IMAGE_JIB, | ||
CONTAINER_IMAGE_DOCKER, | ||
CONTAINER_IMAGE_S2I, | ||
HIBERNATE_ORM, | ||
HIBERNATE_REACTIVE, | ||
SMALLRYE_OPENTRACING, | ||
; | ||
|
||
/** | ||
* | ||
* @return the name | ||
*/ | ||
public String getName() { | ||
return "io.quarkus." + toString().toLowerCase().replace("_", "."); | ||
} | ||
|
||
} |
125 changes: 125 additions & 0 deletions
125
core/deployment/src/main/java/io/quarkus/deployment/Feature.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,125 @@ | ||
package io.quarkus.deployment; | ||
|
||
import io.quarkus.deployment.builditem.FeatureBuildItem; | ||
|
||
/** | ||
* Represents a feature provided by a core extension. | ||
* | ||
* @see FeatureBuildItem | ||
*/ | ||
public enum Feature { | ||
|
||
AGROAL, | ||
AMAZON_DYNAMODB, | ||
AMAZON_LAMBDA, | ||
AMAZON_S3, | ||
AMAZON_SNS, | ||
AMAZON_SQS, | ||
AMAZON_SES, | ||
AMAZON_KMS, | ||
ARTEMIS_CORE, | ||
ARTEMIS_JMS, | ||
CACHE, | ||
CDI, | ||
CONFIG_YAML, | ||
CONSUL_CONFIG, | ||
ELASTICSEARCH_REST_CLIENT, | ||
FLYWAY, | ||
GRPC_CLIENT, | ||
GRPC_SERVER, | ||
HIBERNATE_ORM, | ||
HIBERNATE_ORM_PANACHE, | ||
HIBERNATE_ORM_PANACHE_KOTLIN, | ||
HIBERNATE_ORM_REST_DATA_PANACHE, | ||
HIBERNATE_REACTIVE, | ||
HIBERNATE_SEARCH_ELASTICSEARCH, | ||
HIBERNATE_VALIDATOR, | ||
INFINISPAN_CLIENT, | ||
INFINISPAN_EMBEDDED, | ||
JAEGER, | ||
JDBC_DERBY, | ||
JDBC_H2, | ||
JDBC_POSTGRESQL, | ||
JDBC_MARIADB, | ||
JDBC_MSSQL, | ||
JDBC_MYSQL, | ||
JGIT, | ||
JSCH, | ||
KAFKA_STREAMS, | ||
KEYCLOAK_AUTHORIZATION, | ||
KOTLIN, | ||
KUBERNETES, | ||
KUBERNETES_CLIENT, | ||
LIQUIBASE, | ||
LOGGING_GELF, | ||
MAILER, | ||
MONGODB_CLIENT, | ||
MONGODB_PANACHE, | ||
MUTINY, | ||
NARAYANA_JTA, | ||
NARAYANA_STM, | ||
REACTIVE_PG_CLIENT, | ||
REACTIVE_MYSQL_CLIENT, | ||
REACTIVE_DB2_CLIENT, | ||
NEO4J, | ||
OIDC, | ||
OPTAPLANNER, | ||
OPTAPLANNER_JACKSON, | ||
OPTAPLANNER_JSONB, | ||
PICOCLI, | ||
QUTE, | ||
RESTEASY, | ||
RESTEASY_JACKSON, | ||
RESTEASY_JAXB, | ||
RESTEASY_JSONB, | ||
RESTEASY_MUTINY, | ||
RESTEASY_QUTE, | ||
REST_CLIENT, | ||
REST_CLIENT_JACKSON, | ||
REST_CLIENT_JAXB, | ||
REST_CLIENT_JSONB, | ||
SCALA, | ||
SCHEDULER, | ||
SECURITY, | ||
SECURITY_JDBC, | ||
SECURITY_LDAP, | ||
SECURITY_JPA, | ||
SECURITY_PROPERTIES_FILE, | ||
SECURITY_OAUTH2, | ||
SERVLET, | ||
SMALLRYE_CONTEXT_PROPAGATION, | ||
SMALLRYE_FAULT_TOLERANCE, | ||
SMALLRYE_HEALTH, | ||
SMALLRYE_JWT, | ||
SMALLRYE_METRICS, | ||
SMALLRYE_OPENAPI, | ||
SMALLRYE_OPENTRACING, | ||
SMALLRYE_REACTIVE_MESSAGING, | ||
SMALLRYE_REACTIVE_MESSAGING_KAFKA, | ||
SMALLRYE_REACTIVE_MESSAGING_AMQP, | ||
SMALLRYE_REACTIVE_MESSAGING_MQTT, | ||
SMALLRYE_REACTIVE_STREAMS_OPERATORS, | ||
SMALLRYE_REACTIVE_TYPE_CONVERTERS, | ||
SMALLRYE_GRAPHQL, | ||
SPRING_DI, | ||
SPRING_WEB, | ||
SPRING_DATA_JPA, | ||
SPRING_SECURITY, | ||
SPRING_BOOT_PROPERTIES, | ||
SPRING_CACHE, | ||
SPRING_CLOUD_CONFIG_CLIENT, | ||
SWAGGER_UI, | ||
TIKA, | ||
UNDERTOW_WEBSOCKETS, | ||
VAULT, | ||
VERTX, | ||
VERTX_WEB, | ||
VERTX_GRAPHQL, | ||
WEBJARS_LOCATOR, | ||
; | ||
|
||
public String getName() { | ||
return toString().toLowerCase().replace("_", "-"); | ||
} | ||
|
||
} |
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
5 changes: 5 additions & 0 deletions
5
...ent/src/main/java/io/quarkus/deployment/builditem/ExtensionSslNativeSupportBuildItem.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.