Created
September 15, 2021 09:45
-
-
Save riprasad/cf31ab90383c8384afc4014457b2e8c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.maven.model.Exclusion | |
import org.commonjava.maven.ext.core.groovy.BaseScript | |
import org.commonjava.maven.ext.core.groovy.InvocationStage | |
import org.commonjava.maven.ext.core.groovy.PMEBaseScript | |
import org.commonjava.maven.ext.core.groovy.InvocationPoint | |
@InvocationPoint(invocationPoint = InvocationStage.FIRST) | |
@PMEBaseScript BaseScript pme | |
String fge = 'com.github.fge' | |
String coreutils = 'jackson-coreutils' | |
String msgSimple = 'msg-simple' | |
String btf = 'btf' | |
static Exclusion exclusion(String groupId, String artifactId) { | |
new Exclusion(artifactId: artifactId, groupId: groupId) | |
} | |
def apicurioRegistryProject = pme.projects.find { | |
it.groupId == "io.apicurio" && it.artifactId == "apicurio-registry" | |
} | |
def apicurioRegistryDependencies = apicurioRegistryProject.model.dependencyManagement.dependencies | |
apicurioRegistryDependencies.find { | |
it.groupId == "io.confluent" && it.artifactId == "kafka-protobuf-serializer" | |
}.addExclusion(exclusion("com.github.everit-org.json-schema", "org.everit.json.schema")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment