/** * Get the URLs for the classpath during annotation processing * * @return Classpath URLs */ @Input @Classpath protected Set<URL> getClasspathUrls() { Configuration compileConfiguration = getProject().getConfigurations() .getByName(EclipseConfigPlugin.ECLIPSE_ANNOTATIONS_CONFIGURATION); getLogger().info("Using classpath '{}'", compileConfiguration.getAsPath()); Set<URL> urls = compileConfiguration.getFiles().stream().map(f -> { try { return f.toURI().toURL(); } catch (MalformedURLException e) { throw new GradleException( String.format("Could not create classpath for annotations task %s.", getName()), e); } }).collect(Collectors.toSet()); return ImmutableSet.copyOf(urls); }
@Override @CompileClasspath // Gradle 3.4+ @Classpath // Gradle 3.2+ @InputFiles public FileCollection getClasspath() { return super.getClasspath(); }
/** * The class path containing the PMD library to be used. */ @Classpath public FileCollection getPmdClasspath() { return pmdClasspath; }
/** * The class path containing the JDepend library to be used. */ @Classpath public FileCollection getJdependClasspath() { return jdependClasspath; }
/** * Compile class path for the classes to be analyzed. The classes on this class path are used during analysis but aren't analyzed themselves. */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * Class path holding the FindBugs library. */ @Classpath public FileCollection getFindbugsClasspath() { return findbugsClasspath; }
/** * Class path holding any additional FindBugs plugins. */ @Classpath public FileCollection getPluginClasspath() { return pluginClasspath; }
/** * The class path containing the CodeNarc library to be used. */ @Classpath public FileCollection getCodenarcClasspath() { return codenarcClasspath; }
/** * The class path containing the Checkstyle library to be used. */ @Classpath public FileCollection getCheckstyleClasspath() { return checkstyleClasspath; }
/** * The class path containing the compiled classes for the source files to be analyzed. */ @Classpath public FileCollection getClasspath() { return classpath; }
@Classpath public FileCollection getRhinoClasspath() { return getProject().files(rhinoClasspath); }
/** * Returns the classpath to use to load the Scala compiler. */ @Classpath public FileCollection getScalaClasspath() { return scalaClasspath; }
/** * Returns the classpath to use to load the Zinc incremental compiler. This compiler in turn loads the Scala compiler. */ @Classpath public FileCollection getZincClasspath() { return zincClasspath; }
/** * Returns the classpath to use to load the ScalaDoc tool. */ @Classpath public FileCollection getScalaClasspath() { return scalaClasspath; }
@Classpath public FileCollection getClasspath() { return classpath; }
/** * Classpath containing Jacoco classes for use by the task. */ @Classpath public FileCollection getJacocoClasspath() { return jacocoClasspath; }
@Classpath List<File> getDocletpath();
@Classpath List<File> getBootClasspath();
/** * The classpath used to load the classes under validation. */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * The code under test. Defaults to {@code sourceSets.main.runtimeClasspath}. */ @Classpath public FileCollection getPluginClasspath() { return pluginClasspath; }
/** * Returns the classpath to make available to the web application. */ @Classpath public Iterable<File> getAdditionalRuntimeJars() { return additionalRuntimeJars; }
/** * Returns the classpath for the web application. */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * Returns the classpath to use to execute the tests. */ @Classpath public FileCollection getClasspath() { return classpath; }
@Override public Class<? extends Annotation> getAnnotationType() { return Classpath.class; }
/** * The class path for the application. */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * Compile class path for the classes to be analyzed. * * The classes on this class path are used during analysis but aren't analyzed themselves. * * This is only well supported for PMD 5.2.1 or better. */ @Classpath @Optional @Incubating public FileCollection getClasspath() { return classpath; }
/** * Returns the classpath containing the Ant ANTLR task implementation. * * @return The Ant task implementation classpath. */ @Classpath public FileCollection getAntlrClasspath() { return antlrClasspath; }
/** * <p>Returns the classpath to use to locate classes referenced by the documented source.</p> * * @return The classpath. */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * Returns the classpath containing the version of Groovy to use for compilation. * * @return The classpath. */ @Classpath public FileCollection getGroovyClasspath() { return groovyClasspath; }
/** * Returns the classpath containing the Groovy library to be used. * * @return The classpath containing the Groovy library to be used */ @Classpath public FileCollection getGroovyClasspath() { return groovyClasspath; }
/** * Returns the classpath used to locate classes referenced by the documented sources. * * @return The classpath used to locate classes referenced by the documented sources */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * Returns the classpath to use to compile the source files. * * @return The classpath. */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * Returns the classpath to use to resolve type references in the source code. * * @return The classpath. */ @Classpath public FileCollection getClasspath() { return classpath; }
/** * Returns the bootstrap classpath to use for the process. The default bootstrap classpath for the JVM is used when * this classpath is empty. * * @return The bootstrap classpath. Never returns null. */ @Classpath FileCollection getBootstrapClasspath();
/** * Returns the classpath for executing the main class. */ @Classpath FileCollection getClasspath();
/** * Returns the classpath to include in the WAR archive. Any JAR or ZIP files in this classpath are included in the {@code WEB-INF/lib} directory. Any directories in this classpath are included in * the {@code WEB-INF/classes} directory. * * @return The classpath. Returns an empty collection when there is no classpath to include in the WAR. */ @Optional @Classpath public FileCollection getClasspath() { return classpath; }