Class JReleaserContext

java.lang.Object
org.jreleaser.model.internal.JReleaserContext

public class JReleaserContext extends Object
Since:
0.1.0
Author:
Andres Almiray
  • Constructor Details

    • JReleaserContext

      public JReleaserContext(org.jreleaser.logging.JReleaserLogger logger, JReleaserContext.Configurer configurer, org.jreleaser.model.api.JReleaserContext.Mode mode, JReleaserModel model, Path basedir, Path outputDirectory, boolean dryrun, boolean gitRootSearch, boolean strict, List<String> selectedPlatforms, List<String> rejectedPlatforms)
  • Method Details

    • empty

      public static JReleaserContext empty()
    • asImmutable

      public org.jreleaser.model.api.JReleaserContext asImmutable()
    • eval

      public Object eval(String script)
    • relativize

      public Path relativize(Path basedir, Path other)
    • relativizeToBasedir

      public Path relativizeToBasedir(Path other)
    • relativize

      public Path relativize(Path basedir, String other)
    • relativizeToBasedir

      public Path relativizeToBasedir(String other)
    • validateModel

      public org.jreleaser.util.Errors validateModel()
    • isPlatformSelected

      public boolean isPlatformSelected(Artifact artifact)
    • isPlatformSelected

      public boolean isPlatformSelected(String platform)
    • getLogger

      public org.jreleaser.logging.JReleaserLogger getLogger()
    • getConfigurer

      public JReleaserContext.Configurer getConfigurer()
    • getMode

      public org.jreleaser.model.api.JReleaserContext.Mode getMode()
    • getModel

      public JReleaserModel getModel()
    • getBasedir

      public Path getBasedir()
    • getOutputDirectory

      public Path getOutputDirectory()
    • getChecksumsDirectory

      public Path getChecksumsDirectory()
    • getCatalogsDirectory

      public Path getCatalogsDirectory()
    • getSignaturesDirectory

      public Path getSignaturesDirectory()
    • getPrepareDirectory

      public Path getPrepareDirectory()
    • getPackageDirectory

      public Path getPackageDirectory()
    • getAssembleDirectory

      public Path getAssembleDirectory()
    • getDownloadDirectory

      public Path getDownloadDirectory()
    • getArtifactsDirectory

      public Path getArtifactsDirectory()
    • getDeployDirectory

      public Path getDeployDirectory()
    • isDryrun

      public boolean isDryrun()
    • isGitRootSearch

      public boolean isGitRootSearch()
    • isStrict

      public boolean isStrict()
    • getChangelog

      public org.jreleaser.model.api.JReleaserContext.Changelog getChangelog()
    • getReleaser

      public Releaser<?> getReleaser()
    • setReleaser

      public void setReleaser(Releaser<?> releaser)
    • getWorkflowListeners

      public List<org.jreleaser.extensions.api.workflow.WorkflowListener> getWorkflowListeners()
    • setWorkflowListeners

      public void setWorkflowListeners(Collection<org.jreleaser.extensions.api.workflow.WorkflowListener> workflowListeners)
    • getIncludedAnnouncers

      public List<String> getIncludedAnnouncers()
    • setIncludedAnnouncers

      public void setIncludedAnnouncers(List<String> includedAnnouncers)
    • getIncludedAssemblers

      public List<String> getIncludedAssemblers()
    • setIncludedAssemblers

      public void setIncludedAssemblers(List<String> includedAssemblerTypes)
    • getIncludedCatalogers

      public List<String> getIncludedCatalogers()
    • setIncludedCatalogers

      public void setIncludedCatalogers(List<String> includedCatalogers)
    • getIncludedDistributions

      public List<String> getIncludedDistributions()
    • setIncludedDistributions

      public void setIncludedDistributions(List<String> includedDistributions)
    • getIncludedPackagers

      public List<String> getIncludedPackagers()
    • setIncludedPackagers

      public void setIncludedPackagers(List<String> includedPackagers)
    • getIncludedDownloaderTypes

      public List<String> getIncludedDownloaderTypes()
    • setIncludedDownloaderTypes

      public void setIncludedDownloaderTypes(List<String> includedDownloaderTypes)
    • getIncludedDownloaderNames

      public List<String> getIncludedDownloaderNames()
    • setIncludedDownloaderNames

      public void setIncludedDownloaderNames(List<String> includedDownloaderNames)
    • getIncludedDeployerTypes

      public List<String> getIncludedDeployerTypes()
    • setIncludedDeployerTypes

      public void setIncludedDeployerTypes(List<String> includedDeployerTypes)
    • getIncludedDeployerNames

      public List<String> getIncludedDeployerNames()
    • setIncludedDeployerNames

      public void setIncludedDeployerNames(List<String> includedDeployerNames)
    • getIncludedUploaderTypes

      public List<String> getIncludedUploaderTypes()
    • setIncludedUploaderTypes

      public void setIncludedUploaderTypes(List<String> includedUploaderTypes)
    • getIncludedUploaderNames

      public List<String> getIncludedUploaderNames()
    • setIncludedUploaderNames

      public void setIncludedUploaderNames(List<String> includedUploaderNames)
    • getExcludedAnnouncers

      public List<String> getExcludedAnnouncers()
    • setExcludedAnnouncers

      public void setExcludedAnnouncers(List<String> excludedAnnouncers)
    • getExcludedAssemblers

      public List<String> getExcludedAssemblers()
    • setExcludedAssemblers

      public void setExcludedAssemblers(List<String> excludedAssemblerTypes)
    • getExcludedCatalogers

      public List<String> getExcludedCatalogers()
    • setExcludedCatalogers

      public void setExcludedCatalogers(List<String> excludedCatalogers)
    • getExcludedDistributions

      public List<String> getExcludedDistributions()
    • setExcludedDistributions

      public void setExcludedDistributions(List<String> excludedDistributions)
    • getExcludedPackagers

      public List<String> getExcludedPackagers()
    • setExcludedPackagers

      public void setExcludedPackagers(List<String> excludedPackagers)
    • getExcludedDownloaderTypes

      public List<String> getExcludedDownloaderTypes()
    • setExcludedDownloaderTypes

      public void setExcludedDownloaderTypes(List<String> excludedDownloaderTypes)
    • getExcludedDownloaderNames

      public List<String> getExcludedDownloaderNames()
    • setExcludedDownloaderNames

      public void setExcludedDownloaderNames(List<String> excludedDownloaderNames)
    • getExcludedDeployerTypes

      public List<String> getExcludedDeployerTypes()
    • setExcludedDeployerTypes

      public void setExcludedDeployerTypes(List<String> excludedDeployerTypes)
    • getExcludedDeployerNames

      public List<String> getExcludedDeployerNames()
    • setExcludedDeployerNames

      public void setExcludedDeployerNames(List<String> excludedDeployerNames)
    • getExcludedUploaderTypes

      public List<String> getExcludedUploaderTypes()
    • setExcludedUploaderTypes

      public void setExcludedUploaderTypes(List<String> excludedUploaderTypes)
    • getExcludedUploaderNames

      public List<String> getExcludedUploaderNames()
    • setExcludedUploaderNames

      public void setExcludedUploaderNames(List<String> excludedUploaderNames)
    • getCommand

      public org.jreleaser.model.api.JReleaserCommand getCommand()
    • setCommand

      public void setCommand(org.jreleaser.model.api.JReleaserCommand command)
    • props

      public org.jreleaser.mustache.TemplateContext props()
    • fullProps

      public org.jreleaser.mustache.TemplateContext fullProps()
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • report

      public void report()
    • nag

      public void nag(String version, String message)
    • createKeyring

      public org.jreleaser.model.api.signing.Keyring createKeyring() throws org.jreleaser.model.api.signing.SigningException
      Throws:
      org.jreleaser.model.api.signing.SigningException
    • isDistributionIncluded

      public boolean isDistributionIncluded(Distribution distribution)
    • fireSessionStartEvent

      public void fireSessionStartEvent() throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireSessionEndEvent

      public void fireSessionEndEvent() throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireWorkflowEvent

      public void fireWorkflowEvent(org.jreleaser.model.api.hooks.ExecutionEvent event) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireAnnounceStepEvent

      public void fireAnnounceStepEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.announce.Announcer announcer) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireAssembleStepEvent

      public void fireAssembleStepEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.assemble.Assembler assembler) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireCatalogStepEvent

      public void fireCatalogStepEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.catalog.Cataloger cataloger) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireDeployStepEvent

      public void fireDeployStepEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.deploy.Deployer deployer) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireDownloadStepEvent

      public void fireDownloadStepEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.download.Downloader downloader) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireUploadStepEvent

      public void fireUploadStepEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.upload.Uploader uploader) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireReleaseStepEvent

      public void fireReleaseStepEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.release.Releaser releaser) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireDistributionStartEvent

      public void fireDistributionStartEvent(org.jreleaser.model.api.distributions.Distribution distribution) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • fireDistributionEndEvent

      public void fireDistributionEndEvent(org.jreleaser.model.api.distributions.Distribution distribution) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • firePackagerPackageEvent

      public void firePackagerPackageEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.distributions.Distribution distribution, org.jreleaser.model.api.packagers.Packager packager) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • firePackagerPublishEvent

      public void firePackagerPublishEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.distributions.Distribution distribution, org.jreleaser.model.api.packagers.Packager packager) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException
    • firePackagerPrepareEvent

      public void firePackagerPrepareEvent(org.jreleaser.model.api.hooks.ExecutionEvent event, org.jreleaser.model.api.distributions.Distribution distribution, org.jreleaser.model.api.packagers.Packager packager) throws org.jreleaser.extensions.api.workflow.WorkflowListenerException
      Throws:
      org.jreleaser.extensions.api.workflow.WorkflowListenerException