Skip to content

Custom Maven Enforcer rule that helps identifying dependencies with CRaC-enhanced versions

Notifications You must be signed in to change notification settings

CRaC/crac-enforcer-rule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Custom CRaC rule for Maven Enforcer

Some libraries require modifications in order to work well with OpenJDK CRaC. Until these are integrated to the main project, or when these are not available for older version we release artifacts fixed for CRaC under io.github.crac.<project.group.id>.

The Maven Enforcer rule helps you identify which artifacts should be replaced by CRaC'ed versions.

Usage

Please make sure you're using Maven Enforcer version 3.3.0 or higher.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-enforcer-plugin</artifactId>
    <version>3.3.0</version>
    <dependencies>
        <dependency>
            <groupId>io.github.crac</groupId>
            <artifactId>crac-enforcer-rule</artifactId>
            <version><!-- VERSION --></version>
        </dependency>
    </dependencies>
    <configuration>
        <rules>
            <cracDependencies>
                <!-- Some artifacts that have been tested in our app can be allow-listed -->
                <allowedArtifacts>
                    <artifact>com.example:some-artifact:1.2.3</artifact>
                </allowedArtifacts>
            </cracDependencies>
        </rules>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>enforce</goal>
            </goals>
        </execution>
    </executions>
</plugin>

About

Custom Maven Enforcer rule that helps identifying dependencies with CRaC-enhanced versions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages