mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Update Enforcer (maven plugin) rule (#15575)
* better enforcer with gradle mgmt plugin * update gradle-enterprise * fix id
This commit is contained in:
parent
cbcf3d36f6
commit
273be4634e
@ -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
pom.xml
83
pom.xml
@ -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>
|
||||
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user