From 23fcb75adb681a5f2289a7d6a438e393c5b4ed16 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 4 Jan 2025 22:00:14 +0100 Subject: [PATCH] Clean code: remove unused constant --- generators/docker/constants.ts | 1 - generators/generator-constants.js | 1 - generators/gradle/constants.ts | 2 -- generators/maven/constants.ts | 2 -- generators/project-name/constants.ts | 1 - lib/jhipster/deployment-options.ts | 3 --- 6 files changed, 10 deletions(-) diff --git a/generators/docker/constants.ts b/generators/docker/constants.ts index 5906bd555bb2..0fbaaf76535b 100644 --- a/generators/docker/constants.ts +++ b/generators/docker/constants.ts @@ -17,5 +17,4 @@ * limitations under the License. */ export const SERVICE_HEALTHY = 'service_healthy'; -export const SERVICE_STARTED = 'service_started'; export const SERVICE_COMPLETED_SUCCESSFULLY = 'service_completed_successfully'; diff --git a/generators/generator-constants.js b/generators/generator-constants.js index 89bcbc228d8a..765bb33d1e36 100644 --- a/generators/generator-constants.js +++ b/generators/generator-constants.js @@ -32,7 +32,6 @@ export const ADD_SPRING_MILESTONE_REPOSITORY = false; // Version of Node, NPM export const NODE_VERSION = readFileSync(join(fileURLToPath(import.meta.url), '../init/resources/.node-version'), 'utf-8').trim(); -export const OPENAPI_GENERATOR_CLI_VERSION = '2.13.1'; // The version should be coherent with the one from spring-data-elasticsearch project export const ELASTICSEARCH_TAG = '8.13.4'; diff --git a/generators/gradle/constants.ts b/generators/gradle/constants.ts index a4d3d13a4f62..7bbf8bc5285e 100644 --- a/generators/gradle/constants.ts +++ b/generators/gradle/constants.ts @@ -17,5 +17,3 @@ * limitations under the License. */ export const GRADLE = 'gradle'; -export const GRADLE_DESCRIPTION = 'Gradle'; -export const BUILD_DESTINATION_VALUE = 'build'; diff --git a/generators/maven/constants.ts b/generators/maven/constants.ts index 743d79db3185..50a54c527784 100644 --- a/generators/maven/constants.ts +++ b/generators/maven/constants.ts @@ -17,5 +17,3 @@ * limitations under the License. */ export const MAVEN = 'maven'; -export const MAVEN_DESCRIPTION = 'Maven'; -export const BUILD_DESTINATION_VALUE = 'target'; diff --git a/generators/project-name/constants.ts b/generators/project-name/constants.ts index 84896a92a147..41ab77225b37 100644 --- a/generators/project-name/constants.ts +++ b/generators/project-name/constants.ts @@ -20,4 +20,3 @@ export const BASE_NAME = 'baseName'; export const BASE_NAME_DESCRIPTION = 'Application base name'; export const JHIPSTER_VERSION = 'jhipsterVersion'; -export const JHIPSTER_VERSION_DESCRIPTION = 'Force jhipsterVersion for reproducibility'; diff --git a/lib/jhipster/deployment-options.ts b/lib/jhipster/deployment-options.ts index 7e53c8199d81..53b59bfaccbf 100644 --- a/lib/jhipster/deployment-options.ts +++ b/lib/jhipster/deployment-options.ts @@ -35,9 +35,6 @@ export const DeploymentTypes = { exists: (deploymentType?: any) => !!deploymentType && !!DeploymentTypes[deploymentType.toUpperCase().replace('-', '')], }; -export const DOCKERCOMPOSE = DeploymentTypes.DOCKERCOMPOSE; -export const KUBERNETES = DeploymentTypes.KUBERNETES; - const kubernetesRelatedOptions = { kubernetesNamespace: 'default', kubernetesServiceType: {