Skip to content

Commit

Permalink
refactor by renaming the gradle frontend plugin module slug
Browse files Browse the repository at this point in the history
  • Loading branch information
renanfranca committed May 18, 2024
1 parent 4c2cd1f commit 012b73d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ JHipsterModuleResource frontendMavenModule(FrontendServerApplicationService fron
@Bean
JHipsterModuleResource frontendGradleModule(FrontendServerApplicationService frontendServer) {
return JHipsterModuleResource.builder()
.slug(FRONTEND_GRADLE_PLUGIN)
.slug(NODE_GRADLE_PLUGIN)
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().addProjectBaseName().addIndentation().build())
.apiDoc("Frontend Gradle Plugin", "Add node-gradle plugin for building frontend with Gradle")
.organization(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public enum JHLiteModuleSlug implements JHipsterModuleSlugFactory {
FLYWAY("flyway"),
FLYWAY_MYSQL("flyway-mysql"),
FRONTEND_MAVEN_PLUGIN("frontend-maven-plugin"),
FRONTEND_GRADLE_PLUGIN("frontend-gradle-plugin"),
NODE_GRADLE_PLUGIN("node-gradle-plugin"),
GATEWAY("gateway"),
GIT_INFORMATION("git-information"),
GITHUB_ACTIONS_MAVEN("github-actions-maven"),
Expand Down
2 changes: 1 addition & 1 deletion src/test/features/server/javatool/frontend-server.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Frontend server module
| RedirectionResource.java |

Scenario: Should apply frontend server gradle module
When I apply "frontend-gradle-plugin" module to default project with gradle build
When I apply "node-gradle-plugin" module to default project with gradle build
| packageName | tech.jhipster.chips |
| baseName | jhipster |
Then I should have files in "src/main/java/tech/jhipster/chips/wire/frontend/infrastructure/primary"
Expand Down
2 changes: 1 addition & 1 deletion tests-ci/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ frontend_server_plugin() {
if [[ $java_build_tool == 'maven' ]]; then
applyModules "frontend-maven-plugin"
else
applyModules "frontend-gradle-plugin"
applyModules "node-gradle-plugin"
fi
}

Expand Down

0 comments on commit 012b73d

Please sign in to comment.