diff --git a/.github/workflows/gradle-plugin-tests.yaml b/.github/workflows/gradle-plugin-tests.yaml
index eab2881f3aa7..d3c9b73894a0 100644
--- a/.github/workflows/gradle-plugin-tests.yaml
+++ b/.github/workflows/gradle-plugin-tests.yaml
@@ -38,7 +38,7 @@ jobs:
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
run: |
- mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml
index 9a9b66dfa668..21d7799a31f7 100644
--- a/.github/workflows/linux.yaml
+++ b/.github/workflows/linux.yaml
@@ -52,7 +52,7 @@ jobs:
- name: Build with Maven
shell: bash
- run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml
+ run: mvn clean -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress install --file pom.xml
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
@@ -74,7 +74,7 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
run: |
cd modules/openapi-generator-maven-plugin
- mvn verify -Pintegration
+ mvn clean verify -Pintegration
verify:
name: Verify outputs on ${{ matrix.os }}
diff --git a/.github/workflows/openapi-generator.yaml b/.github/workflows/openapi-generator.yaml
index 0c1b9ef5f6b7..19fa55468dce 100644
--- a/.github/workflows/openapi-generator.yaml
+++ b/.github/workflows/openapi-generator.yaml
@@ -36,7 +36,7 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
- name: Run maven
- run: mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ run: mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- run: ls -la modules/openapi-generator-cli/target
@@ -74,7 +74,7 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
- name: Run unit tests
- run: mvn --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ run: mvn clean --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Publish unit test reports
diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml
index b2b62fe5e88c..21a0699aeff3 100644
--- a/.github/workflows/windows.yaml
+++ b/.github/workflows/windows.yaml
@@ -44,7 +44,7 @@ jobs:
java-version: ${{ matrix.java }}
maven-version: 3.9.0
- name: Run maven
- run: mvn --no-snapshot-updates --batch-mode --quiet install
+ run: mvn clean --no-snapshot-updates --batch-mode --quiet install
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Setup Gradle
diff --git a/pom.xml b/pom.xml
index 811edfc62c92..5100cc2f6e27 100644
--- a/pom.xml
+++ b/pom.xml
@@ -287,7 +287,7 @@
3.3.0
- enforce-versions
+ enforce-maven
enforce
@@ -399,87 +399,6 @@
git-commit-id-plugin
${git-commit-id-plugin.version}
-
- com.gradle
- gradle-enterprise-maven-extension
-
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- enforce-versions
-
-
-
- fail
-
-
- failFast
-
-
- failIfNoRules
-
-
- rulesToSkip
-
-
- rulesToExecute
-
-
- rules
-
-
- skip
-
-
-
- ignoreCache
- mojoExecution
- session
-
-
-
-
- project
-
-
- dependencies
-
-
-
- groupId
-
-
- artifactId
-
-
- version
-
-
- type
-
-
- scope
-
-
-
-
-
-
-
-
- version check should run in every build
-
-
-
-
-
-
-
-