Class SourcesJarGenerator
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.java.JarBuilder
org.jdrupes.builder.mvnrepo.SourcesJarGenerator
- All Implemented Interfaces:
Generator, Renamable, ResourceProvider
A special JarBuilder that generates a sources jar following
the maven convention.
-
The content of the jar is obtained by requesting
FileTrees withJavaSourceFiles from the project's suppliers. -
The name of the jar is set to
<artifactId>-<version>-sources.jar, where<artifactId>is the value of the project's propertyMvnProperties.ArtifactIdwith a fallback to the project's name.<version>is the value of the project's propertyProject.Properties.Version.
-
Constructor Summary
ConstructorsConstructorDescriptionSourcesJarGenerator(Project project) Initializes a new sources jar generator. -
Method Summary
Methods inherited from class JarBuilder
add, add, add, add, addAttributeValues, addEntries, addManifestAttributes, addTrees, attributes, buildJar, collect, collectContents, destination, destination, destination, doProvide, jarName, jarName, jarName, name, resolveDuplicatesMethods inherited from class AbstractGenerator
cleanup, newResource, project, toStringMethods inherited from class AbstractProvider
context, name, of, rename, vavrStream
-
Constructor Details
-
SourcesJarGenerator
Initializes a new sources jar generator.- Parameters:
project- the project
-