-
-
Notifications
You must be signed in to change notification settings - Fork 216
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 #3837 from DamnClin/slug-factories
Factories for slugs
- Loading branch information
Showing
80 changed files
with
610 additions
and
254 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
33 changes: 33 additions & 0 deletions
33
src/main/java/tech/jhipster/lite/generator/JHLiteFeatureSlug.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,33 @@ | ||
package tech.jhipster.lite.generator; | ||
|
||
import tech.jhipster.lite.module.domain.resource.JHipsterFeatureSlugFactory; | ||
|
||
public enum JHLiteFeatureSlug implements JHipsterFeatureSlugFactory { | ||
ANGULAR_AUTHENTICATION("angular-authentication"), | ||
AUTHENTICATION("authentication"), | ||
BANNER("banner"), | ||
CACHE("cache"), | ||
CLIENT_CORE("client-core"), | ||
CUCUMBER_AUTHENTICATION("cucumber-authentication"), | ||
DATABASE_MIGRATION("database-migration"), | ||
DUMMY_PERSISTENCE("dummy-persistence"), | ||
DUMMY_SCHEMA("dummy-schema"), | ||
FRONT_BROWSER_TEST("front-browser-test"), | ||
JAVA_BUILD_TOOL("java-build-tool"), | ||
JPA_PERSISTENCE("jpa-persistence"), | ||
SERVICE_DISCOVERY("service-discovery"), | ||
SPRING_SERVER("spring-server"), | ||
SPRINGDOC("springdoc"), | ||
WEB_ERROR_MANAGEMENT("web-error-management"); | ||
|
||
private final String slug; | ||
|
||
JHLiteFeatureSlug(String slug) { | ||
this.slug = slug; | ||
} | ||
|
||
@Override | ||
public String get() { | ||
return slug; | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
src/main/java/tech/jhipster/lite/generator/JHLiteModuleSlug.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,108 @@ | ||
package tech.jhipster.lite.generator; | ||
|
||
import tech.jhipster.lite.module.domain.resource.JHipsterModuleSlugFactory; | ||
|
||
public enum JHLiteModuleSlug implements JHipsterModuleSlugFactory { | ||
ANGULAR_CORE("angular-core"), | ||
ANGULAR_HEALTH("angular-health"), | ||
ANGULAR_JWT("angular-jwt"), | ||
ANGULAR_OAUTH_2("angular-oauth2"), | ||
APPLICATION_SERVICE_HEXAGONAL_ARCHITECTURE_DOCUMENTATION("application-service-hexagonal-architecture-documentation"), | ||
BANNER_JHIPSTER_V2("banner-jhipster-v2"), | ||
BANNER_JHIPSTER_V3("banner-jhipster-v3"), | ||
BANNER_JHIPSTER_V7("banner-jhipster-v7"), | ||
BANNER_JHIPSTER_V7_REACT("banner-jhipster-v7-react"), | ||
BANNER_JHIPSTER_V7_VUE("banner-jhipster-v7-vue"), | ||
CONSUL("consul"), | ||
CUSTOM_JHLITE("custom-jhlite"), | ||
CYPRESS("cypress"), | ||
DOCKERFILE("dockerfile"), | ||
DUMMY_FEATURE("dummy-feature"), | ||
DUMMY_JPA_PERSISTENCE("dummy-jpa-persistence"), | ||
DUMMY_LIQUIBASE_CHANGELOG("dummy-liquibase-changelog"), | ||
DUMMY_MONGODB_PERSITENCE("dummy-mongodb-persistence"), | ||
DUMMY_NOT_POSTGRESQL_FLYWAY_CHANGELOG("dummy-not-postgresql-flyway-changelog"), | ||
DUMMY_POSTGRESQL_FLYWAY_CHANGELOG("dummy-postgresql-flyway-changelog"), | ||
EHCACHE_JAVA_CONFIG("ehcache-java-config"), | ||
EHCACHE_XML_CONFIG("ehcache-xml-config"), | ||
EUREKA_CLIENT("eureka-client"), | ||
FLYWAY("flyway"), | ||
FLYWAY_MYSQL("flyway-mysql"), | ||
FRONTEND_MAVEN_PLUGIN("frontend-maven-plugin"), | ||
GATEWAY("gateway"), | ||
GITHUB_ACTIONS("github-actions"), | ||
GITHUB_CODESPACES("github-codespaces"), | ||
GITLAB_CI("gitlab-ci"), | ||
GITPOD("gitpod"), | ||
INFINITEST_FILTERS("infinitest-filters"), | ||
INIT("init"), | ||
JACOCO_CHECK_MIN_COVERAGE("jacoco-check-min-coverage"), | ||
JAVA_ARCHUNIT("java-archunit"), | ||
JAVA_BASE("java-base"), | ||
JAVA_MEMOIZERS("java-memoizers"), | ||
JIB("jib"), | ||
JPA_PAGINATION("jpa-pagination"), | ||
LIQUIBASE("liquibase"), | ||
LOGSTASH("logstash"), | ||
MARIADB("mariadb"), | ||
MAVEN_JAVA("maven-java"), | ||
MAVEN_WRAPPER("maven-wrapper"), | ||
MONGOCK("mongock"), | ||
MONGODB("mongodb"), | ||
MSSQL("mssql"), | ||
MYSQL("mysql"), | ||
PAGINATION_DOMAIN("pagination-domain"), | ||
PLAYWRIGHT("playwright"), | ||
POSTGRESQL("postgresql"), | ||
PRETTIER("prettier"), | ||
REACT_CORE("react-core"), | ||
REACT_JWT("react-jwt"), | ||
REST_PAGINATION("rest-pagination"), | ||
SONAR_JAVA_BACKEND("sonar-java-backend"), | ||
SONAR_JAVA_BACKEND_AND_FRONTEND("sonar-java-backend-and-frontend"), | ||
SPRING_BOOT("spring-boot"), | ||
SPRING_BOOT_ACTUATOR("spring-boot-actuator"), | ||
SPRING_BOOT_ASYNC("spring-boot-async"), | ||
SPRING_BOOT_CACHE("spring-boot-cache"), | ||
SPRING_BOOT_CUCUMBER("spring-boot-cucumber"), | ||
SPRING_BOOT_CUCUMBER_JPA_RESET("spring-boot-cucumber-jpa-reset"), | ||
SPRING_BOOT_CUCUMBER_JWT_AUTHENTICATION("spring-boot-cucumber-jwt-authentication"), | ||
SPRING_BOOT_CUCUMBER_OAUTH_2_AUTHENTICATION("spring-boot-cucumber-oauth2-authentication"), | ||
SPRING_BOOT_DEVTOOLS("spring-boot-devtools"), | ||
SPRING_BOOT_JWT("spring-boot-jwt"), | ||
SPRING_BOOT_JWT_BASIC_AUTH("spring-boot-jwt-basic-auth"), | ||
SPRING_BOOT_KAFKA("spring-boot-kafka"), | ||
SPRING_BOOT_KAFKA_AKHQ("spring-boot-kafka-akhq"), | ||
SPRING_BOOT_KAFKA_DUMMY_PRODUCER_CONSUMER("spring-boot-kafka-dummy-producer-consumer"), | ||
SPRING_BOOT_OAUTH_2("spring-boot-oauth2"), | ||
SPRING_BOOT_OAUTH_2_ACCOUNT("spring-boot-oauth2-account"), | ||
SPRING_BOOT_OAUTH_2_AUTH_0("spring-boot-oauth2-auth0"), | ||
SPRING_BOOT_OAUTH_2_OKTA("spring-boot-oauth2-okta"), | ||
SPRING_BOOT_PULSAR("spring-boot-pulsar"), | ||
SPRING_BOOT_TOMCAT("spring-boot-tomcat"), | ||
SPRING_BOOT_UNDERTOW("spring-boot-undertow"), | ||
SPRING_BOOT_WEBFLUX_NETTY("spring-boot-webflux-netty"), | ||
SPRING_CLOUD("spring-cloud"), | ||
SPRINGDOC_JWT("springdoc-jwt"), | ||
SPRINGDOC_MVC_OPENAPI("springdoc-mvc-openapi"), | ||
SPRINGDOC_OAUTH_2("springdoc-oauth2"), | ||
SPRINGDOC_OAUTH_2_AUTH_0("springdoc-oauth2-auth0"), | ||
SPRINGDOC_OAUTH_2_OKTA("springdoc-oauth2-okta"), | ||
SPRINGDOC_WEBFLUX_OPENAPI("springdoc-webflux-openapi"), | ||
SVELTE("svelte"), | ||
TYPESCRIPT("typescript"), | ||
VUE_CORE("vue-core"), | ||
VUE_PINIA("vue-pinia"), | ||
ZALANDO_PROBLEMS("zalando-problems"); | ||
|
||
private final String slug; | ||
|
||
JHLiteModuleSlug(String slug) { | ||
this.slug = slug; | ||
} | ||
|
||
@Override | ||
public String get() { | ||
return slug; | ||
} | ||
} |
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
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
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
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.