Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Enforcer (maven plugin) rule #15575

Merged
merged 4 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .mvn/gradle-enterprise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@
<enabled>false</enabled>
</local>
<remote>
<enabled>false</enabled>
<server>
<url>https://ge.openapi-generator.tech/cache/exp3/</url> <!-- adjust to your GE hostname, and note the trailing slash -->
<allowUntrusted>true</allowUntrusted> <!-- set to false if a trusted certificate is configured for the GE server -->
<credentials>
<username>${env.GRADLE_ENTERPRISE_CACHE_USERNAME}</username>
<password>${env.GRADLE_ENTERPRISE_CACHE_PASSWORD}</password>
</credentials>
</server>
<enabled>true</enabled> <!-- must be true for this experiment -->
<storeEnabled>#{env['CI'] != null}</storeEnabled> <!-- adjust to an env var that is always present only in your CI environment -->
</remote>
</buildCache>
</gradleEnterprise>
83 changes: 82 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>3.3.0</version>
<executions>
<execution>
<id>enforce-versions</id>
Expand Down Expand Up @@ -399,6 +399,87 @@
<artifactId>git-commit-id-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
</plugin>
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<configuration>
<gradleEnterprise>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-versions</id>
<inputs>
<properties>
<property>
<name>fail</name>
</property>
<property>
<name>failFast</name>
</property>
<property>
<name>failIfNoRules</name>
</property>
<property>
<name>rulesToSkip</name>
</property>
<property>
<name>rulesToExecute</name>
</property>
<property>
<name>rules</name>
</property>
<property>
<name>skip</name>
</property>
</properties>
<ignoredProperties>
<ignore>ignoreCache</ignore>
<ignore>mojoExecution</ignore>
<ignore>session</ignore>
</ignoredProperties>
</inputs>
<nestedProperties>
<property>
<name>project</name>
<iteratedProperties>
<property>
<name>dependencies</name>
<inputs>
<properties>
<property>
<name>groupId</name>
</property>
<property>
<name>artifactId</name>
</property>
<property>
<name>version</name>
</property>
<property>
<name>type</name>
</property>
<property>
<name>scope</name>
</property>
</properties>
</inputs>
</property>
</iteratedProperties>
</property>
</nestedProperties>
<outputs>
<cacheableBecause>version check should run in every build</cacheableBecause>
</outputs>
</execution>
</executions>
</plugin>
</plugins>
</gradleEnterprise>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down