Example usage for com.fasterxml.jackson.core.util VersionUtil mavenVersionFor

List of usage examples for com.fasterxml.jackson.core.util VersionUtil mavenVersionFor

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core.util VersionUtil mavenVersionFor.

Prototype

public static Version mavenVersionFor(ClassLoader classLoader, String groupId, String artifactId) 

Source Link

Document

Will attempt to load the maven version for the given groupId and artifactId.

Usage

From source file:org.zalando.jackson.module.unknownproperty.UnknownPropertyModule.java

@Override
@SuppressWarnings("deprecation")
public Version version() {
    final ClassLoader loader = UnknownPropertyModule.class.getClassLoader();
    return VersionUtil.mavenVersionFor(loader, "org.zalando", "jackson-module-unknown-property");
}

From source file:org.zalando.problem.ProblemModule.java

@SuppressWarnings("deprecation")
@Override/*from   ww  w .  j  a va 2 s.  c o m*/
public Version version() {
    return VersionUtil.mavenVersionFor(ProblemModule.class.getClassLoader(), "org.zalando",
            "jackson-datatype-problem");
}