com.dynatrace.buildtools.graalnative.PluginUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynatrace-native-maven-plugin Show documentation
Show all versions of dynatrace-native-maven-plugin Show documentation
A Maven plugin to auto-instrument GraalVM Native projects with the Dynatrace OneAgent
The newest version!
package com.dynatrace.buildtools.graalnative;
import org.apache.maven.model.Plugin;
import org.apache.maven.project.MavenProject;
public final class PluginUtils {
public static Plugin getGraalVmPlugin(final MavenProject project) {
return project.getPlugin("org.graalvm.buildtools:native-maven-plugin");
}
public static Plugin getQuarkusPlugin(final MavenProject project) {
final Plugin quarkusPlugin = project.getPlugin("io.quarkus.platform:quarkus-maven-plugin");
if (quarkusPlugin != null) {
return quarkusPlugin;
}
return project.getPlugin("io.quarkus:quarkus-maven-plugin");
}
private PluginUtils() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy