Search in sources :

Example 16 with VersionNumber

use of org.gradle.util.internal.VersionNumber in project gradle by gradle.

the class PmdPlugin method configureDefaultDependencies.

private void configureDefaultDependencies(Configuration configuration) {
    configuration.defaultDependencies(dependencies -> {
        VersionNumber version = VersionNumber.parse(extension.getToolVersion());
        String dependency = calculateDefaultDependencyNotation(version);
        dependencies.add(project.getDependencies().create(dependency));
    });
}
Also used : VersionNumber(org.gradle.util.internal.VersionNumber)

Aggregations

VersionNumber (org.gradle.util.internal.VersionNumber)16 File (java.io.File)9 GradleException (org.gradle.api.GradleException)3 ArrayList (java.util.ArrayList)2 Matcher (java.util.regex.Matcher)2 CompilerConfiguration (org.codehaus.groovy.control.CompilerConfiguration)2 TestFile (org.gradle.test.fixtures.file.TestFile)2 Binding (groovy.lang.Binding)1 GroovyClassLoader (groovy.lang.GroovyClassLoader)1 GroovyShell (groovy.lang.GroovyShell)1 BufferedReader (java.io.BufferedReader)1 IOException (java.io.IOException)1 StringReader (java.io.StringReader)1 HashMap (java.util.HashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 List (java.util.List)1 Pattern (java.util.regex.Pattern)1 Collectors.toList (java.util.stream.Collectors.toList)1 MissingRegistryEntryException (net.rubygrapefruit.platform.MissingRegistryEntryException)1 CompilationUnit (org.codehaus.groovy.control.CompilationUnit)1