From 1746645cf033b1be22f268c02d100be3b1f929f1 Mon Sep 17 00:00:00 2001 From: khalilou88 <32600911+khalilou88@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:12:16 +0100 Subject: [PATCH] build: update project names (#782) Co-authored-by: khalilou88 --- .../tests/nx-gradle/micronaut-kt.spec.ts | 46 +++++++++--------- .../tests/nx-gradle/micronaut.spec.ts | 46 +++++++++--------- .../tests/nx-gradle/quarkus-kt.spec.ts | 46 +++++++++--------- .../tests/nx-gradle/quarkus.spec.ts | 26 +++++----- .../tests/nx-gradle/spring-boot-kt.spec.ts | 48 +++++++++---------- .../tests/nx-gradle/spring-boot.spec.ts | 48 +++++++++---------- 6 files changed, 130 insertions(+), 130 deletions(-) diff --git a/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut-kt.spec.ts b/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut-kt.spec.ts index 57e4eea45..e74a6a8a7 100644 --- a/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut-kt.spec.ts +++ b/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut-kt.spec.ts @@ -80,7 +80,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a java application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut`, @@ -175,7 +175,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { it('should build-image of a java application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut`, ); @@ -187,7 +187,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should use specified options to create an application', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8181; @@ -269,7 +269,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should generate an app with a simple package name', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8282; @@ -351,7 +351,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a kotlin application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const port = 8383; await runNxCommandAsync( @@ -431,7 +431,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { xit('should build-image of a kotlin application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut --language kotlin`, ); @@ -443,7 +443,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('--an app with aliases', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appDir = 'subdir'; const appName = `${appDir}-${randomName}`; const port = 8484; @@ -525,7 +525,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('directory with dash', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appName = `deep-sub-dir-${randomName}`; const port = 8585; @@ -560,7 +560,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a library', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut`, @@ -621,7 +621,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a kotlin library', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut --language kotlin`, @@ -680,7 +680,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a library with the specified properties', async () => { - const randomName = uniq('micronaut-gradle-lib-'); + const randomName = uniq('g-m-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -739,7 +739,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should generare a lib with a simple package name', async () => { - const randomName = uniq('micronaut-gradle-lib-'); + const randomName = uniq('g-m-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -798,7 +798,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('--a lib with aliases', async () => { - const randomName = uniq('micronaut-gradle-lib-'); + const randomName = uniq('g-m-lib-'); const libDir = 'subdir'; const libName = `${libDir}-${randomName}`; @@ -857,8 +857,8 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should add a lib to an app dependencies', async () => { - const appName = uniq('micronaut-gradle-app-'); - const libName = uniq('micronaut-gradle-lib-'); + const appName = uniq('g-m-app-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut`, @@ -935,8 +935,8 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should add a kotlin lib to a kotlin app dependencies', async () => { - const appName = uniq('micronaut-gradle-app-'); - const libName = uniq('micronaut-gradle-lib-'); + const appName = uniq('g-m-app-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut --language kotlin --packaging war`, @@ -1011,7 +1011,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create an application with a simple name', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const appDir = 'deep/subdir'; const port = 8686; @@ -1093,7 +1093,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a library with a simple name', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); const libDir = 'deep/subdir'; await runNxCommandAsync( @@ -1151,7 +1151,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a minimal java application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const port = 8787; await runNxCommandAsync( @@ -1191,7 +1191,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should create a minimal kotlin application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const port = 8888; await runNxCommandAsync( @@ -1231,7 +1231,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should skip starter code when generating a java library with skipStarterCode option', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut --skipStarterCode`, @@ -1252,7 +1252,7 @@ describe('nx-gradle micronaut kotlin dsl e2e', () => { }, 240000); it('should skip starter code when generating a kotlin library with skipStarterCode option', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut --language kotlin --skipStarterCode`, diff --git a/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut.spec.ts b/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut.spec.ts index 79ab86a65..ea14769c0 100644 --- a/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut.spec.ts +++ b/testing-projects/jnxplus-e2e/tests/nx-gradle/micronaut.spec.ts @@ -80,7 +80,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a micronaut java application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut`, @@ -175,7 +175,7 @@ describe('nx-gradle micronaut e2e', () => { it('should build-image of a java application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut`, ); @@ -187,7 +187,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should use specified options to create an application', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8181; @@ -269,7 +269,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should generate an app with a simple package name', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8282; @@ -351,7 +351,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a kotlin application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const port = 8383; await runNxCommandAsync( @@ -431,7 +431,7 @@ describe('nx-gradle micronaut e2e', () => { xit('should build-image of a kotlin application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut --language kotlin`, ); @@ -443,7 +443,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('--an app with aliases', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appDir = 'subdir'; const appName = `${appDir}-${randomName}`; const port = 8484; @@ -525,7 +525,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('directory with dash', async () => { - const randomName = uniq('micronaut-gradle-app-'); + const randomName = uniq('g-m-app-'); const appName = `deep-sub-dir-${randomName}`; const port = 8585; @@ -560,7 +560,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a library', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut`, @@ -621,7 +621,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a kotlin library', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut --language kotlin`, @@ -680,7 +680,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a library with the specified properties', async () => { - const randomName = uniq('micronaut-gradle-lib-'); + const randomName = uniq('g-m-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -739,7 +739,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should generare a lib with a simple package name', async () => { - const randomName = uniq('micronaut-gradle-lib-'); + const randomName = uniq('g-m-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -798,7 +798,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('--a lib with aliases', async () => { - const randomName = uniq('micronaut-gradle-lib-'); + const randomName = uniq('g-m-lib-'); const libDir = 'subdir'; const libName = `${libDir}-${randomName}`; @@ -857,8 +857,8 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should add a lib to an app dependencies', async () => { - const appName = uniq('micronaut-gradle-app-'); - const libName = uniq('micronaut-gradle-lib-'); + const appName = uniq('g-m-app-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut`, @@ -935,8 +935,8 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should add a kotlin lib to a kotlin app dependencies', async () => { - const appName = uniq('micronaut-gradle-app-'); - const libName = uniq('micronaut-gradle-lib-'); + const appName = uniq('g-m-app-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework micronaut --language kotlin --packaging war`, @@ -1011,7 +1011,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create an application with a simple name', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const appDir = 'deep/subdir'; const port = 8686; @@ -1093,7 +1093,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a library with a simple name', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); const libDir = 'deep/subdir'; await runNxCommandAsync( @@ -1151,7 +1151,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a minimal java application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const port = 8787; await runNxCommandAsync( @@ -1191,7 +1191,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should create a minimal kotlin application', async () => { - const appName = uniq('micronaut-gradle-app-'); + const appName = uniq('g-m-app-'); const port = 8888; await runNxCommandAsync( @@ -1231,7 +1231,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should skip starter code when generating a java library with skipStarterCode option', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut --skipStarterCode`, @@ -1252,7 +1252,7 @@ describe('nx-gradle micronaut e2e', () => { }, 240000); it('should skip starter code when generating a kotlin library with skipStarterCode option', async () => { - const libName = uniq('micronaut-gradle-lib-'); + const libName = uniq('g-m-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework micronaut --language kotlin --skipStarterCode`, diff --git a/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus-kt.spec.ts b/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus-kt.spec.ts index ea547e978..1c45d1f37 100644 --- a/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus-kt.spec.ts +++ b/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus-kt.spec.ts @@ -83,7 +83,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 120000); it('should create a java application', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --groupId org.acme`, @@ -182,7 +182,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { it('should build-image a java application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus`, @@ -199,7 +199,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 120000); it('should use specified options to create an application', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8181; @@ -271,7 +271,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should generate an app with a simple package name', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8282; @@ -339,7 +339,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should create a kotlin application', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); const port = 8383; await runNxCommandAsync( @@ -420,7 +420,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { it('should build-image a kotlin application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --language kotlin`, @@ -437,7 +437,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 120000); it('--an app with aliases', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appDir = 'subdir'; const appName = `${appDir}-${randomName}`; const port = 8484; @@ -509,7 +509,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('directory with dash', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appName = `deep-sub-dir-${randomName}`; const port = 8585; @@ -544,7 +544,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 120000); it('should create a library', async () => { - const libName = uniq('quarkus-gradle-lib-'); + const libName = uniq('g-q-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework quarkus --groupId org.acme`, @@ -612,7 +612,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should create a kotlin library', async () => { - const libName = uniq('quarkus-gradle-lib-'); + const libName = uniq('g-q-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework quarkus --language kotlin --groupId org.acme`, @@ -678,7 +678,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should create a lib with the specified properties', async () => { - const randomName = uniq('quarkus-gradle-lib-'); + const randomName = uniq('g-q-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -737,7 +737,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should generare a lib with a simple package name', async () => { - const randomName = uniq('quarkus-gradle-lib-'); + const randomName = uniq('g-q-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -796,7 +796,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('--a lib with aliases', async () => { - const randomName = uniq('quarkus-gradle-lib-'); + const randomName = uniq('g-q-lib-'); const libDir = 'subdir'; const libName = `${libDir}-${randomName}`; @@ -855,8 +855,8 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should add a lib to an app dependencies', async () => { - const appName = uniq('quarkus-gradle-app-'); - const libName = uniq('quarkus-gradle-lib-'); + const appName = uniq('g-q-app-'); + const libName = uniq('g-q-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --groupId org.acme`, @@ -933,8 +933,8 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should add a kotlin lib to a kotlin app dependencies', async () => { - const appName = uniq('quarkus-gradle-app-'); - const libName = uniq('quarkus-gradle-lib-'); + const appName = uniq('g-q-app-'); + const libName = uniq('g-q-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --language kotlin --groupId org.acme`, @@ -1009,7 +1009,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should create an application with simple name', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); const appDir = 'deep/subdir'; const port = 8686; @@ -1080,7 +1080,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should create a simple name library', async () => { - const libName = uniq('quarkus-gradle-lib-'); + const libName = uniq('g-q-lib-'); const libDir = 'deep/subdir'; await runNxCommandAsync( @@ -1138,7 +1138,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 240000); it('should skip starter code when generating a java application with minimal option', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --minimal`, @@ -1167,7 +1167,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 120000); it('should skip starter code when generating a kotlin application with minimal option', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --language kotlin --minimal`, @@ -1196,7 +1196,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 120000); it('should skip starter code when generating a java library with skipStarterCode option', async () => { - const libName = uniq('quarkus-gradle-lib-'); + const libName = uniq('g-q-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework quarkus --skipStarterCode`, @@ -1217,7 +1217,7 @@ describe('nx-gradle quarkus kotlin dsl e2e', () => { }, 120000); it('should skip starter code when generating a kotlin library with skipStarterCode option', async () => { - const libName = uniq('quarkus-gradle-lib-'); + const libName = uniq('g-q-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework quarkus --language kotlin --skipStarterCode`, diff --git a/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus.spec.ts b/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus.spec.ts index ee5ac1c1a..56e3036c1 100644 --- a/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus.spec.ts +++ b/testing-projects/jnxplus-e2e/tests/nx-gradle/quarkus.spec.ts @@ -83,7 +83,7 @@ describe('nx-gradle quarkus e2e', () => { }, 120000); it('should create a java application', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --groupId org.acme`, @@ -182,7 +182,7 @@ describe('nx-gradle quarkus e2e', () => { it('should build-image a java application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus`, @@ -199,7 +199,7 @@ describe('nx-gradle quarkus e2e', () => { }, 120000); it('should use specified options to create an application', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8181; @@ -271,7 +271,7 @@ describe('nx-gradle quarkus e2e', () => { }, 240000); it('should generate an app with a simple package name', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8282; @@ -339,7 +339,7 @@ describe('nx-gradle quarkus e2e', () => { }, 120000); it('should create a kotlin application', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); const port = 8383; await runNxCommandAsync( @@ -420,7 +420,7 @@ describe('nx-gradle quarkus e2e', () => { it('should build-image a kotlin application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --language kotlin`, @@ -437,7 +437,7 @@ describe('nx-gradle quarkus e2e', () => { }, 120000); it('--an app with aliases', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appDir = 'subdir'; const appName = `${appDir}-${randomName}`; const port = 8484; @@ -509,7 +509,7 @@ describe('nx-gradle quarkus e2e', () => { }, 120000); it('directory with dash', async () => { - const randomName = uniq('quarkus-gradle-app-'); + const randomName = uniq('g-q-app-'); const appName = `deep-sub-dir-${randomName}`; const port = 8585; @@ -855,7 +855,7 @@ describe('nx-gradle quarkus e2e', () => { }, 240000); it('should add a lib to an app dependencies', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); const libName = uniq('quarkus-gradle-lib-'); await runNxCommandAsync( @@ -933,7 +933,7 @@ describe('nx-gradle quarkus e2e', () => { }, 240000); it('should add a kotlin lib to a kotlin app dependencies', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); const libName = uniq('quarkus-gradle-lib-'); await runNxCommandAsync( @@ -1009,7 +1009,7 @@ describe('nx-gradle quarkus e2e', () => { }, 240000); it('should create an application with simple name', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); const appDir = 'deep/subdir'; const port = 8686; @@ -1138,7 +1138,7 @@ describe('nx-gradle quarkus e2e', () => { }, 240000); it('should skip starter code when generating a java application with minimal option', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --minimal`, @@ -1167,7 +1167,7 @@ describe('nx-gradle quarkus e2e', () => { }, 120000); it('should skip starter code when generating a kotlin application with minimal option', async () => { - const appName = uniq('quarkus-gradle-app-'); + const appName = uniq('g-q-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework quarkus --language kotlin --minimal`, diff --git a/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot-kt.spec.ts b/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot-kt.spec.ts index 2ba6df2b3..f6b8e539e 100644 --- a/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot-kt.spec.ts +++ b/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot-kt.spec.ts @@ -80,7 +80,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a java application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot`, @@ -176,7 +176,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { it('should build-image a java application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot`, ); @@ -188,7 +188,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should use specified options to create an application', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8181; @@ -275,7 +275,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should generate an app with a simple package name', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8282; @@ -362,7 +362,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a kotlin application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const port = 8383; await runNxCommandAsync( @@ -446,7 +446,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { it('should build-image a kotlin application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot --language kotlin`, ); @@ -458,7 +458,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('--an app with aliases', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appDir = 'subdir'; const appName = `${appDir}-${randomName}`; const port = 8484; @@ -545,7 +545,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('directory with dash', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appName = `deep-sub-dir-${randomName}`; const port = 8585; @@ -580,7 +580,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a library', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot`, @@ -644,7 +644,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a kotlin library', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot --language kotlin`, @@ -706,7 +706,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a library with the specified properties', async () => { - const randomName = uniq('boot-gradle-lib-'); + const randomName = uniq('g-sb-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -768,7 +768,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should generare a lib with a simple package name', async () => { - const randomName = uniq('boot-gradle-lib-'); + const randomName = uniq('g-sb-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -830,7 +830,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('--a lib with aliases', async () => { - const randomName = uniq('boot-gradle-lib-'); + const randomName = uniq('g-sb-lib-'); const libDir = 'subdir'; const libName = `${libDir}-${randomName}`; @@ -892,8 +892,8 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should add a lib to an app dependencies', async () => { - const appName = uniq('boot-gradle-app-'); - const libName = uniq('boot-gradle-lib-'); + const appName = uniq('g-sb-app-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot`, @@ -970,8 +970,8 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should add a kotlin lib to a kotlin app dependencies', async () => { - const appName = uniq('boot-gradle-app-'); - const libName = uniq('boot-gradle-lib-'); + const appName = uniq('g-sb-app-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot --language kotlin --packaging war`, @@ -1054,7 +1054,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create an application with a simple name', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const appDir = 'deep/subdir'; const port = 8686; @@ -1138,7 +1138,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a library with a simple name', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); const libDir = 'deep/subdir'; await runNxCommandAsync( @@ -1199,7 +1199,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a minimal java application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const port = 8787; await runNxCommandAsync( @@ -1247,7 +1247,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should create a minimal kotlin application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const port = 8888; await runNxCommandAsync( @@ -1296,7 +1296,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should skip starter code when generating a java library with skipStarterCode option', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot --skipStarterCode`, @@ -1320,7 +1320,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('should skip starter code when generating a kotlin library with skipStarterCode option', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot --language kotlin --skipStarterCode`, @@ -1345,7 +1345,7 @@ describe('nx-gradle spring-boot kotlin dsl e2e', () => { }, 120000); it('optional project.json', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot`, diff --git a/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot.spec.ts b/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot.spec.ts index 061532996..080d6cdc3 100644 --- a/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot.spec.ts +++ b/testing-projects/jnxplus-e2e/tests/nx-gradle/spring-boot.spec.ts @@ -80,7 +80,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a java application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot`, @@ -176,7 +176,7 @@ describe('nx-gradle spring-boot e2e', () => { it('should build-image a java application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot`, ); @@ -188,7 +188,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should use specified options to create an application', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8181; @@ -286,7 +286,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should generate an app with a simple package name', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appDir = 'deep/subdir'; const appName = `${normalizeName(appDir)}-${randomName}`; const port = 8282; @@ -373,7 +373,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a kotlin application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const port = 8383; await runNxCommandAsync( @@ -469,7 +469,7 @@ describe('nx-gradle spring-boot e2e', () => { it('should build-image a kotlin application', async () => { if (!isWin && !isMacOs && isCI) { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot --language kotlin`, ); @@ -481,7 +481,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('--an app with aliases', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appDir = 'subdir'; const appName = `${appDir}-${randomName}`; const port = 8484; @@ -568,7 +568,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('directory with dash', async () => { - const randomName = uniq('boot-gradle-app-'); + const randomName = uniq('g-sb-app-'); const appName = `deep-sub-dir-${randomName}`; const port = 8585; @@ -603,7 +603,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a library', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot`, @@ -667,7 +667,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a kotlin library', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot --language kotlin`, @@ -741,7 +741,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a library with the specified properties', async () => { - const randomName = uniq('boot-gradle-lib-'); + const randomName = uniq('g-sb-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -814,7 +814,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should generare a lib with a simple package name', async () => { - const randomName = uniq('boot-gradle-lib-'); + const randomName = uniq('g-sb-lib-'); const libDir = 'deep/subdir'; const libName = `${normalizeName(libDir)}-${randomName}`; @@ -876,7 +876,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('--a lib with aliases', async () => { - const randomName = uniq('boot-gradle-lib-'); + const randomName = uniq('g-sb-lib-'); const libDir = 'subdir'; const libName = `${libDir}-${randomName}`; @@ -938,8 +938,8 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should add a lib to an app dependencies', async () => { - const appName = uniq('boot-gradle-app-'); - const libName = uniq('boot-gradle-lib-'); + const appName = uniq('g-sb-app-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot`, @@ -1016,8 +1016,8 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should add a kotlin lib to a kotlin app dependencies', async () => { - const appName = uniq('boot-gradle-app-'); - const libName = uniq('boot-gradle-lib-'); + const appName = uniq('g-sb-app-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:application ${appName} --framework spring-boot --language kotlin --packaging war`, @@ -1100,7 +1100,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create an application with a simple name', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const appDir = 'deep/subdir'; const port = 8686; @@ -1184,7 +1184,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a library with a simple name', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); const libDir = 'deep/subdir'; await runNxCommandAsync( @@ -1245,7 +1245,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a minimal java application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const port = 8787; await runNxCommandAsync( @@ -1293,7 +1293,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should create a minimal kotlin application', async () => { - const appName = uniq('boot-gradle-app-'); + const appName = uniq('g-sb-app-'); const port = 8888; await runNxCommandAsync( @@ -1342,7 +1342,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should skip starter code when generating a java library with skipStarterCode option', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot --skipStarterCode`, @@ -1366,7 +1366,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('should skip starter code when generating a kotlin library with skipStarterCode option', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot --language kotlin --skipStarterCode`, @@ -1391,7 +1391,7 @@ describe('nx-gradle spring-boot e2e', () => { }, 120000); it('optional project.json', async () => { - const libName = uniq('boot-gradle-lib-'); + const libName = uniq('g-sb-lib-'); await runNxCommandAsync( `generate @jnxplus/nx-gradle:library ${libName} --framework spring-boot`,