Skip to content

Commit

Permalink
feat: support artifactory-plugin v5
Browse files Browse the repository at this point in the history
Signed-off-by: Kengo TODA <toda_k@henry.jp>
  • Loading branch information
KengoTODA committed Sep 4, 2024
1 parent 7f42609 commit 69242ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gradle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ export function getTaskToPublish(
logger.info(INFO_ARTIFACTORY);
}
tasks = ["artifactoryDeploy"];
} else if (line.startsWith("artifactoryPublish -")) {
// Plugins Gradle Artifactory Plugin and Maven Publish Plugin are often used together
if (tasks.length !== 0 && tasks[0] !== "publish") {
reject(new Error(ERROR_MULTIPLE_PLUGIN));
}
if (tasks.length !== 0 && tasks[0] === "publish") {
logger.info(INFO_ARTIFACTORY);
}
tasks = ["artifactoryPublish"];
} else if (line.startsWith("publish -")) {
// Plugins Gradle Artifactory Plugin and Maven Publish Plugin are often used together
if (
Expand Down

0 comments on commit 69242ed

Please sign in to comment.