gradle-semantic-release-plugin
Advanced tools
Comparing version 1.9.2 to 1.10.0
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Signale } from "signale"; | ||
@@ -3,0 +2,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.publishArtifact = exports.buildOptions = exports.getVersion = exports.getTaskToPublish = exports.getCommand = void 0; | ||
exports.getCommand = getCommand; | ||
exports.getTaskToPublish = getTaskToPublish; | ||
exports.getVersion = getVersion; | ||
exports.buildOptions = buildOptions; | ||
exports.publishArtifact = publishArtifact; | ||
const child_process_1 = require("child_process"); | ||
@@ -36,3 +40,2 @@ const fs_1 = require("fs"); | ||
} | ||
exports.getCommand = getCommand; | ||
/** | ||
@@ -67,2 +70,12 @@ * @param {string} cwd the path of current working directory | ||
} | ||
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 -")) { | ||
@@ -72,2 +85,3 @@ // Plugins Gradle Artifactory Plugin and Maven Publish Plugin are often used together | ||
tasks[0] !== "artifactoryDeploy" && | ||
tasks[0] !== "artifactoryPublish" && | ||
tasks[0] !== "publishPlugins" && | ||
@@ -77,3 +91,3 @@ tasks[0] !== "publishToSonatype") { | ||
} | ||
if (tasks.length != 0 && tasks[0] === "artifactoryDeploy") { | ||
if (tasks.length != 0 && (tasks[0] === "artifactoryDeploy" || tasks[0] === "artifactoryPublish")) { | ||
logger.info(INFO_ARTIFACTORY); | ||
@@ -133,3 +147,2 @@ } | ||
} | ||
exports.getTaskToPublish = getTaskToPublish; | ||
/** | ||
@@ -169,3 +182,2 @@ * @param {string} cwd the path of current working directory | ||
} | ||
exports.getVersion = getVersion; | ||
function buildOptions(env) { | ||
@@ -183,3 +195,2 @@ const options = []; | ||
} | ||
exports.buildOptions = buildOptions; | ||
function publishArtifact(cwd, env, logger) { | ||
@@ -210,2 +221,1 @@ return new Promise(async (resolve, reject) => { | ||
} | ||
exports.publishArtifact = publishArtifact; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.updateVersion = void 0; | ||
exports.updateVersion = updateVersion; | ||
exports.default = prepare; | ||
const fs_1 = require("fs"); | ||
@@ -25,3 +26,2 @@ const path_1 = require("path"); | ||
} | ||
exports.updateVersion = updateVersion; | ||
async function prepare(pluginConfig, context) { | ||
@@ -36,2 +36,1 @@ const { cwd, env, nextRelease } = context; | ||
} | ||
exports.default = prepare; |
{ | ||
"name": "gradle-semantic-release-plugin", | ||
"version": "1.9.2", | ||
"version": "1.10.0", | ||
"description": "Automated release management for Gradle project", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20236
322