Class PublishTasks
java.lang.Object
io.github.intisy.gradle.github.plugin.PublishTasks
Registers the
publishGithub task.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(org.gradle.api.Project project, Logger logger, PublishExtension publishExtension, Repositories repositories, Publishing publishing) Registers thepublishGithubtask, which creates (or reuses) a GitHub release for the project's version and uploads its configured jar(s) to it.
-
Constructor Details
-
PublishTasks
public PublishTasks()
-
-
Method Details
-
apply
public static void apply(org.gradle.api.Project project, Logger logger, PublishExtension publishExtension, Repositories repositories, Publishing publishing) Registers thepublishGithubtask, which creates (or reuses) a GitHub release for the project's version and uploads its configured jar(s) to it.- Parameters:
project- the project the task is registered on and whose version/jars are published.logger- receives diagnostic output.publishExtension- the extension supplying the release owner/repo/tag/artifacts.repositories- the client used to resolve the owner/repo from the git remote when not configured explicitly.publishing- the client used to create the release and upload assets.
-