public final class JkPublisher
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static JkPublisher |
of(JkRepo repo)
Creates a
JkPublisher with the specified JkRepo . |
static JkPublisher |
of(JkRepoSet publishRepos)
Creates a
JkPublisher with the specified JkRepoSet . |
static JkPublisher |
of(JkRepoSet publishRepos,
java.nio.file.Path artifactDir)
Creates a
JkPublisher with the specified JkRepoSet . |
void |
publishIvy(JkVersionedModule versionedModule,
JkIvyPublication publication,
JkDependencySet dependencies,
JkScopeMapping defaultMapping,
java.time.Instant deliveryDate,
JkVersionProvider resolvedVersion)
Publishes the specified publication to the Ivy repositories defined in
this publisher
|
void |
publishMaven(JkVersionedModule versionedModule,
JkMavenPublication publication,
JkDependencySet dependencies)
Publishes the specified publication on the Maven repositories of this
publisher.
|
JkPublisher |
withSigner(java.util.function.UnaryOperator<java.nio.file.Path> signer) |
public static JkPublisher of(JkRepo repo)
JkPublisher
with the specified JkRepo
.public static JkPublisher of(JkRepoSet publishRepos, java.nio.file.Path artifactDir)
JkPublisher
with the specified JkRepoSet
.
and artifact directory. artifactDir
is the place where pom.xml and
ivy.xml are generated.public static JkPublisher of(JkRepoSet publishRepos)
JkPublisher
with the specified JkRepoSet
.public JkPublisher withSigner(java.util.function.UnaryOperator<java.nio.file.Path> signer)
public void publishIvy(JkVersionedModule versionedModule, JkIvyPublication publication, JkDependencySet dependencies, JkScopeMapping defaultMapping, java.time.Instant deliveryDate, JkVersionProvider resolvedVersion)
versionedModule
- The module id and version to publishpublication
- The content of the publicationdependencies
- The dependencies of the modules (necessary to generate an
ivy.xml file)defaultMapping
- deliveryDate
- The delivery date (necessary to generate an ivy.xml file)resolvedVersion
- If the dependencies contains dynamic versions (as 1.0.+) then
you can mention a static version replacement. If none, you can
just pass JkVersionProvider.of()
}public void publishMaven(JkVersionedModule versionedModule, JkMavenPublication publication, JkDependencySet dependencies)
versionedModule
- The target getModuleId and version for the specified publicationpublication
- The content of the publicationdependencies
- The dependencies to specify in the generated pom file.