public final class JkIvyPublication
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JkIvyPublication.JkIvyPublishedArtifact |
Modifier and Type | Field and Description |
---|---|
JkRunnables |
postActions |
JkRunnables |
preActions |
Modifier and Type | Method and Description |
---|---|
JkIvyPublication |
addRepos(JkRepo... repoArgs)
Adds the specified repositories to the publication repositories.
|
JkIvyPublication |
configureDependencies(java.util.function.UnaryOperator<JkQualifiedDependencySet> modifier)
Configure the dependencies that will be exported with the published module.
By default, JeKa computes it from the compile and runtime dependencies. |
JkRepo |
findFirstNonLocalRepo()
Shorthand to get the first declared publication repository.
|
java.util.List<JkIvyPublication.JkIvyPublishedArtifact> |
getAllArtifacts() |
JkFileSigner |
getDefaultSigner()
Returns the default file signer for this publication.
|
JkQualifiedDependencySet |
getDependencies()
Returns the transitive dependencies for this publication
|
JkModuleId |
getModuleId()
Returns the moduleId (group + artifact name) for this publication.
|
static JkQualifiedDependencySet |
getPublishDependencies(JkDependencySet compileDependencies,
JkDependencySet runtimeDependencies,
JkCoordinate.ConflictStrategy strategy) |
JkRepoSet |
getRepos()
Returns the repositories where this publication will be published.
|
JkVersion |
getVersion()
Returns the version of the artifacts for this publication.
|
java.lang.String |
info() |
static JkIvyPublication |
of()
Creates a
JkIvyPublication . |
JkIvyPublication |
publish() |
JkIvyPublication |
publishLocal() |
JkIvyPublication |
putArtifact(java.lang.String artifactName,
java.nio.file.Path artifactFile,
java.lang.String... configurationNames)
Adds the specified artifact to the publication.
|
JkIvyPublication |
putArtifactWithType(java.lang.String artifactName,
java.nio.file.Path artifactFile,
java.lang.String type,
java.lang.String... configurationNames)
Adds the specified artifact to the publication.
|
JkIvyPublication |
putMainArtifact(java.nio.file.Path file,
java.lang.String... configurationNames) |
JkIvyPublication |
putMainArtifactWithType(java.nio.file.Path file,
java.lang.String type,
java.lang.String... configurationNames) |
JkIvyPublication |
putOptionalArtifact(java.nio.file.Path file,
java.lang.String... configurationNames)
Same as
putMainArtifact(Path, String...) (Path, String...) but effective only if the specified file exists. |
JkIvyPublication |
putOptionalArtifactWithType(java.nio.file.Path file,
java.lang.String type,
java.lang.String... configurationNames)
Same as
putMainArtifact(Path, String...) (Path, String, String...) but effective only if the specified file
exists. |
JkIvyPublication |
setBomResolutionRepos(java.util.function.Supplier<JkRepoSet> repoSupplier)
Sets the supplier providing the download repositories used to resolve BOMs.
|
JkIvyPublication |
setDefaultSigner(JkFileSigner defaultSigner)
Sets the default file signer to use for this publication.
|
JkIvyPublication |
setDependencies(JkDependencySet allCompileDeps,
JkDependencySet allRuntimeDeps,
JkDependencySet allTestDeps)
Sets transitive dependencies for this publication.
|
JkIvyPublication |
setDependencies(JkDependencySet allCompileDeps,
JkDependencySet allRuntimeDeps,
JkDependencySet allTestDeps,
JkCoordinate.ConflictStrategy conflictStrategy)
Sets transitive dependencies for this publication.
|
JkIvyPublication |
setDependencies(JkQualifiedDependencySet configuredDependencies)
Sets transitive dependencies for this publication.
|
JkIvyPublication |
setModuleId(java.lang.String moduleId)
Sets the moduleId (group + artifactName) for this publication.
|
JkIvyPublication |
setModuleIdSupplier(java.util.function.Supplier<JkModuleId> moduleIdSupplier)
Sets the supplier providing the moduleId (group + artifactName) for this publication.
|
JkIvyPublication |
setRepos(JkRepoSet repos)
Sets the repositories where this publication will be published.
|
JkIvyPublication |
setVersion(java.lang.String version)
Sets the version of the artifacts to publish.
|
JkIvyPublication |
setVersionSupplier(java.util.function.Supplier<JkVersion> versionSupplier)
Sets the supplier providing the version of the artifacts to publish.
|
public final JkRunnables preActions
public final JkRunnables postActions
public static JkIvyPublication of()
JkIvyPublication
.public JkIvyPublication configureDependencies(java.util.function.UnaryOperator<JkQualifiedDependencySet> modifier)
public JkIvyPublication setDependencies(JkQualifiedDependencySet configuredDependencies)
public JkIvyPublication setDependencies(JkDependencySet allCompileDeps, JkDependencySet allRuntimeDeps, JkDependencySet allTestDeps, JkCoordinate.ConflictStrategy conflictStrategy)
public JkIvyPublication setDependencies(JkDependencySet allCompileDeps, JkDependencySet allRuntimeDeps, JkDependencySet allTestDeps)
public JkQualifiedDependencySet getDependencies()
public JkIvyPublication setModuleIdSupplier(java.util.function.Supplier<JkModuleId> moduleIdSupplier)
public JkIvyPublication setModuleId(java.lang.String moduleId)
setModuleIdSupplier(Supplier)
public JkIvyPublication setVersionSupplier(java.util.function.Supplier<JkVersion> versionSupplier)
public JkIvyPublication setVersion(java.lang.String version)
setVersionSupplier(Supplier)
public JkIvyPublication setBomResolutionRepos(java.util.function.Supplier<JkRepoSet> repoSupplier)
public JkModuleId getModuleId()
public JkVersion getVersion()
public JkFileSigner getDefaultSigner()
Normally, each publish repository can define its own signer. Conveniently we can specify a file signer for repositories which don't have.
public JkIvyPublication setDefaultSigner(JkFileSigner defaultSigner)
getDefaultSigner()
public JkRepoSet getRepos()
public JkIvyPublication setRepos(JkRepoSet repos)
public JkIvyPublication addRepos(JkRepo... repoArgs)
setRepos(JkRepoSet)
public JkIvyPublication putMainArtifact(java.nio.file.Path file, java.lang.String... configurationNames)
public JkIvyPublication putMainArtifactWithType(java.nio.file.Path file, java.lang.String type, java.lang.String... configurationNames)
public JkIvyPublication putArtifactWithType(java.lang.String artifactName, java.nio.file.Path artifactFile, java.lang.String type, java.lang.String... configurationNames)
public JkIvyPublication putArtifact(java.lang.String artifactName, java.nio.file.Path artifactFile, java.lang.String... configurationNames)
public JkIvyPublication putOptionalArtifact(java.nio.file.Path file, java.lang.String... configurationNames)
putMainArtifact(Path, String...)
(Path, String...) but effective only if the specified file exists.public JkIvyPublication putOptionalArtifactWithType(java.nio.file.Path file, java.lang.String type, java.lang.String... configurationNames)
putMainArtifact(Path, String...)
(Path, String, String...) but effective only if the specified file
exists.public java.util.List<JkIvyPublication.JkIvyPublishedArtifact> getAllArtifacts()
public JkIvyPublication publish()
public JkIvyPublication publishLocal()
public JkRepo findFirstNonLocalRepo()
public java.lang.String info()
public static JkQualifiedDependencySet getPublishDependencies(JkDependencySet compileDependencies, JkDependencySet runtimeDependencies, JkCoordinate.ConflictStrategy strategy)