mirror of
https://github.com/gradle/actions.git
synced 2025-10-23 10:18:36 +08:00
Build outputs
This commit is contained in:
parent
92975d7f32
commit
cfe478af6a
70
dist/dependency-submission/main/index.js
vendored
70
dist/dependency-submission/main/index.js
vendored
@ -141501,16 +141501,18 @@ function run() {
|
|||||||
if (config.getDependencyGraphOption() === input_params_1.DependencyGraphOption.DownloadAndSubmit) {
|
if (config.getDependencyGraphOption() === input_params_1.DependencyGraphOption.DownloadAndSubmit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const additionalArgs = core.getInput('additional-arguments');
|
const executionConfig = new input_params_1.GradleExecutionConfig();
|
||||||
|
const taskList = executionConfig.getDependencyResolutionTask();
|
||||||
|
const additionalArgs = executionConfig.getAdditionalArguments();
|
||||||
const executionArgs = `
|
const executionArgs = `
|
||||||
-Dorg.gradle.configureondemand=false
|
-Dorg.gradle.configureondemand=false
|
||||||
-Dorg.gradle.dependency.verification=off
|
-Dorg.gradle.dependency.verification=off
|
||||||
-Dorg.gradle.unsafe.isolated-projects=false
|
-Dorg.gradle.unsafe.isolated-projects=false
|
||||||
:ForceDependencyResolutionPlugin_resolveAllDependencies
|
${taskList}
|
||||||
${additionalArgs}
|
${additionalArgs}
|
||||||
`;
|
`;
|
||||||
const args = (0, string_argv_1.parseArgsStringToArgv)(executionArgs);
|
const args = (0, string_argv_1.parseArgsStringToArgv)(executionArgs);
|
||||||
yield gradle.provisionAndMaybeExecute(args);
|
yield gradle.provisionAndMaybeExecute(executionConfig.getGradleVersion(), executionConfig.getBuildRootDirectory(), args);
|
||||||
yield dependencyGraph.complete(config);
|
yield dependencyGraph.complete(config);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
@ -141593,16 +141595,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.provisionAndMaybeExecute = void 0;
|
exports.provisionAndMaybeExecute = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(42186));
|
const core = __importStar(__nccwpck_require__(42186));
|
||||||
const exec = __importStar(__nccwpck_require__(71514));
|
const exec = __importStar(__nccwpck_require__(71514));
|
||||||
const path = __importStar(__nccwpck_require__(71017));
|
|
||||||
const params = __importStar(__nccwpck_require__(23885));
|
|
||||||
const provisioner = __importStar(__nccwpck_require__(14042));
|
const provisioner = __importStar(__nccwpck_require__(14042));
|
||||||
const gradlew = __importStar(__nccwpck_require__(46807));
|
const gradlew = __importStar(__nccwpck_require__(46807));
|
||||||
const input_params_1 = __nccwpck_require__(23885);
|
function provisionAndMaybeExecute(gradleVersion, buildRootDirectory, args) {
|
||||||
function provisionAndMaybeExecute(args) {
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const executable = yield provisioner.provisionGradle();
|
const executable = yield provisioner.provisionGradle(gradleVersion);
|
||||||
if (args.length > 0) {
|
if (args.length > 0) {
|
||||||
yield executeGradleBuild(executable, buildRootDirectory(), args);
|
yield executeGradleBuild(executable, buildRootDirectory, args);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -141619,14 +141618,6 @@ function executeGradleBuild(executable, root, args) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function buildRootDirectory() {
|
|
||||||
const baseDirectory = (0, input_params_1.getWorkspaceDirectory)();
|
|
||||||
const buildRootDirectoryInput = params.getBuildRootDirectory();
|
|
||||||
const resolvedBuildRootDirectory = buildRootDirectoryInput === ''
|
|
||||||
? path.resolve(baseDirectory)
|
|
||||||
: path.resolve(baseDirectory, buildRootDirectoryInput);
|
|
||||||
return resolvedBuildRootDirectory;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@ -141753,13 +141744,11 @@ const core = __importStar(__nccwpck_require__(42186));
|
|||||||
const cache = __importStar(__nccwpck_require__(27799));
|
const cache = __importStar(__nccwpck_require__(27799));
|
||||||
const toolCache = __importStar(__nccwpck_require__(27784));
|
const toolCache = __importStar(__nccwpck_require__(27784));
|
||||||
const gradlew = __importStar(__nccwpck_require__(46807));
|
const gradlew = __importStar(__nccwpck_require__(46807));
|
||||||
const params = __importStar(__nccwpck_require__(23885));
|
|
||||||
const cache_utils_1 = __nccwpck_require__(11044);
|
const cache_utils_1 = __nccwpck_require__(11044);
|
||||||
const input_params_1 = __nccwpck_require__(23885);
|
const input_params_1 = __nccwpck_require__(23885);
|
||||||
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions';
|
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions';
|
||||||
function provisionGradle() {
|
function provisionGradle(gradleVersion) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const gradleVersion = params.getGradleVersion();
|
|
||||||
if (gradleVersion !== '' && gradleVersion !== 'wrapper') {
|
if (gradleVersion !== '' && gradleVersion !== 'wrapper') {
|
||||||
return addToPath(yield installGradle(gradleVersion));
|
return addToPath(yield installGradle(gradleVersion));
|
||||||
}
|
}
|
||||||
@ -141960,13 +141949,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.getArguments = exports.getBuildRootDirectory = exports.getGradleVersion = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(42186));
|
const core = __importStar(__nccwpck_require__(42186));
|
||||||
const github = __importStar(__nccwpck_require__(95438));
|
const github = __importStar(__nccwpck_require__(95438));
|
||||||
const cache = __importStar(__nccwpck_require__(27799));
|
const cache = __importStar(__nccwpck_require__(27799));
|
||||||
const summary_1 = __nccwpck_require__(81327);
|
const summary_1 = __nccwpck_require__(81327);
|
||||||
const string_argv_1 = __nccwpck_require__(19663);
|
const string_argv_1 = __nccwpck_require__(19663);
|
||||||
|
const path_1 = __importDefault(__nccwpck_require__(71017));
|
||||||
class DependencyGraphConfig {
|
class DependencyGraphConfig {
|
||||||
getDependencyGraphOption() {
|
getDependencyGraphOption() {
|
||||||
const val = core.getInput('dependency-graph');
|
const val = core.getInput('dependency-graph');
|
||||||
@ -142139,19 +142132,30 @@ class BuildScanConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.BuildScanConfig = BuildScanConfig;
|
exports.BuildScanConfig = BuildScanConfig;
|
||||||
function getGradleVersion() {
|
class GradleExecutionConfig {
|
||||||
return core.getInput('gradle-version');
|
getGradleVersion() {
|
||||||
|
return core.getInput('gradle-version');
|
||||||
|
}
|
||||||
|
getBuildRootDirectory() {
|
||||||
|
const baseDirectory = getWorkspaceDirectory();
|
||||||
|
const buildRootDirectoryInput = core.getInput('build-root-directory');
|
||||||
|
const resolvedBuildRootDirectory = buildRootDirectoryInput === ''
|
||||||
|
? path_1.default.resolve(baseDirectory)
|
||||||
|
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
|
||||||
|
return resolvedBuildRootDirectory;
|
||||||
|
}
|
||||||
|
getArguments() {
|
||||||
|
const input = core.getInput('arguments');
|
||||||
|
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
||||||
|
}
|
||||||
|
getDependencyResolutionTask() {
|
||||||
|
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
|
||||||
|
}
|
||||||
|
getAdditionalArguments() {
|
||||||
|
return core.getInput('additional-arguments');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.getGradleVersion = getGradleVersion;
|
exports.GradleExecutionConfig = GradleExecutionConfig;
|
||||||
function getBuildRootDirectory() {
|
|
||||||
return core.getInput('build-root-directory');
|
|
||||||
}
|
|
||||||
exports.getBuildRootDirectory = getBuildRootDirectory;
|
|
||||||
function getArguments() {
|
|
||||||
const input = core.getInput('arguments');
|
|
||||||
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
|
||||||
}
|
|
||||||
exports.getArguments = getArguments;
|
|
||||||
function getJobMatrix() {
|
function getJobMatrix() {
|
||||||
return core.getInput('workflow-job-context');
|
return core.getInput('workflow-job-context');
|
||||||
}
|
}
|
||||||
|
2
dist/dependency-submission/main/index.js.map
vendored
2
dist/dependency-submission/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
41
dist/dependency-submission/post/index.js
vendored
41
dist/dependency-submission/post/index.js
vendored
@ -92728,13 +92728,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.getArguments = exports.getBuildRootDirectory = exports.getGradleVersion = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const github = __importStar(__nccwpck_require__(5438));
|
const github = __importStar(__nccwpck_require__(5438));
|
||||||
const cache = __importStar(__nccwpck_require__(7799));
|
const cache = __importStar(__nccwpck_require__(7799));
|
||||||
const summary_1 = __nccwpck_require__(1327);
|
const summary_1 = __nccwpck_require__(1327);
|
||||||
const string_argv_1 = __nccwpck_require__(9663);
|
const string_argv_1 = __nccwpck_require__(9663);
|
||||||
|
const path_1 = __importDefault(__nccwpck_require__(1017));
|
||||||
class DependencyGraphConfig {
|
class DependencyGraphConfig {
|
||||||
getDependencyGraphOption() {
|
getDependencyGraphOption() {
|
||||||
const val = core.getInput('dependency-graph');
|
const val = core.getInput('dependency-graph');
|
||||||
@ -92907,19 +92911,30 @@ class BuildScanConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.BuildScanConfig = BuildScanConfig;
|
exports.BuildScanConfig = BuildScanConfig;
|
||||||
function getGradleVersion() {
|
class GradleExecutionConfig {
|
||||||
return core.getInput('gradle-version');
|
getGradleVersion() {
|
||||||
|
return core.getInput('gradle-version');
|
||||||
|
}
|
||||||
|
getBuildRootDirectory() {
|
||||||
|
const baseDirectory = getWorkspaceDirectory();
|
||||||
|
const buildRootDirectoryInput = core.getInput('build-root-directory');
|
||||||
|
const resolvedBuildRootDirectory = buildRootDirectoryInput === ''
|
||||||
|
? path_1.default.resolve(baseDirectory)
|
||||||
|
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
|
||||||
|
return resolvedBuildRootDirectory;
|
||||||
|
}
|
||||||
|
getArguments() {
|
||||||
|
const input = core.getInput('arguments');
|
||||||
|
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
||||||
|
}
|
||||||
|
getDependencyResolutionTask() {
|
||||||
|
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
|
||||||
|
}
|
||||||
|
getAdditionalArguments() {
|
||||||
|
return core.getInput('additional-arguments');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.getGradleVersion = getGradleVersion;
|
exports.GradleExecutionConfig = GradleExecutionConfig;
|
||||||
function getBuildRootDirectory() {
|
|
||||||
return core.getInput('build-root-directory');
|
|
||||||
}
|
|
||||||
exports.getBuildRootDirectory = getBuildRootDirectory;
|
|
||||||
function getArguments() {
|
|
||||||
const input = core.getInput('arguments');
|
|
||||||
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
|
||||||
}
|
|
||||||
exports.getArguments = getArguments;
|
|
||||||
function getJobMatrix() {
|
function getJobMatrix() {
|
||||||
return core.getInput('workflow-job-context');
|
return core.getInput('workflow-job-context');
|
||||||
}
|
}
|
||||||
|
2
dist/dependency-submission/post/index.js.map
vendored
2
dist/dependency-submission/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
66
dist/setup-gradle/main/index.js
vendored
66
dist/setup-gradle/main/index.js
vendored
@ -141512,16 +141512,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.provisionAndMaybeExecute = void 0;
|
exports.provisionAndMaybeExecute = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(42186));
|
const core = __importStar(__nccwpck_require__(42186));
|
||||||
const exec = __importStar(__nccwpck_require__(71514));
|
const exec = __importStar(__nccwpck_require__(71514));
|
||||||
const path = __importStar(__nccwpck_require__(71017));
|
|
||||||
const params = __importStar(__nccwpck_require__(23885));
|
|
||||||
const provisioner = __importStar(__nccwpck_require__(14042));
|
const provisioner = __importStar(__nccwpck_require__(14042));
|
||||||
const gradlew = __importStar(__nccwpck_require__(46807));
|
const gradlew = __importStar(__nccwpck_require__(46807));
|
||||||
const input_params_1 = __nccwpck_require__(23885);
|
function provisionAndMaybeExecute(gradleVersion, buildRootDirectory, args) {
|
||||||
function provisionAndMaybeExecute(args) {
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const executable = yield provisioner.provisionGradle();
|
const executable = yield provisioner.provisionGradle(gradleVersion);
|
||||||
if (args.length > 0) {
|
if (args.length > 0) {
|
||||||
yield executeGradleBuild(executable, buildRootDirectory(), args);
|
yield executeGradleBuild(executable, buildRootDirectory, args);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -141538,14 +141535,6 @@ function executeGradleBuild(executable, root, args) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function buildRootDirectory() {
|
|
||||||
const baseDirectory = (0, input_params_1.getWorkspaceDirectory)();
|
|
||||||
const buildRootDirectoryInput = params.getBuildRootDirectory();
|
|
||||||
const resolvedBuildRootDirectory = buildRootDirectoryInput === ''
|
|
||||||
? path.resolve(baseDirectory)
|
|
||||||
: path.resolve(baseDirectory, buildRootDirectoryInput);
|
|
||||||
return resolvedBuildRootDirectory;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@ -141672,13 +141661,11 @@ const core = __importStar(__nccwpck_require__(42186));
|
|||||||
const cache = __importStar(__nccwpck_require__(27799));
|
const cache = __importStar(__nccwpck_require__(27799));
|
||||||
const toolCache = __importStar(__nccwpck_require__(27784));
|
const toolCache = __importStar(__nccwpck_require__(27784));
|
||||||
const gradlew = __importStar(__nccwpck_require__(46807));
|
const gradlew = __importStar(__nccwpck_require__(46807));
|
||||||
const params = __importStar(__nccwpck_require__(23885));
|
|
||||||
const cache_utils_1 = __nccwpck_require__(11044);
|
const cache_utils_1 = __nccwpck_require__(11044);
|
||||||
const input_params_1 = __nccwpck_require__(23885);
|
const input_params_1 = __nccwpck_require__(23885);
|
||||||
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions';
|
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions';
|
||||||
function provisionGradle() {
|
function provisionGradle(gradleVersion) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const gradleVersion = params.getGradleVersion();
|
|
||||||
if (gradleVersion !== '' && gradleVersion !== 'wrapper') {
|
if (gradleVersion !== '' && gradleVersion !== 'wrapper') {
|
||||||
return addToPath(yield installGradle(gradleVersion));
|
return addToPath(yield installGradle(gradleVersion));
|
||||||
}
|
}
|
||||||
@ -141879,13 +141866,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.getArguments = exports.getBuildRootDirectory = exports.getGradleVersion = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(42186));
|
const core = __importStar(__nccwpck_require__(42186));
|
||||||
const github = __importStar(__nccwpck_require__(95438));
|
const github = __importStar(__nccwpck_require__(95438));
|
||||||
const cache = __importStar(__nccwpck_require__(27799));
|
const cache = __importStar(__nccwpck_require__(27799));
|
||||||
const summary_1 = __nccwpck_require__(81327);
|
const summary_1 = __nccwpck_require__(81327);
|
||||||
const string_argv_1 = __nccwpck_require__(19663);
|
const string_argv_1 = __nccwpck_require__(19663);
|
||||||
|
const path_1 = __importDefault(__nccwpck_require__(71017));
|
||||||
class DependencyGraphConfig {
|
class DependencyGraphConfig {
|
||||||
getDependencyGraphOption() {
|
getDependencyGraphOption() {
|
||||||
const val = core.getInput('dependency-graph');
|
const val = core.getInput('dependency-graph');
|
||||||
@ -142058,19 +142049,30 @@ class BuildScanConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.BuildScanConfig = BuildScanConfig;
|
exports.BuildScanConfig = BuildScanConfig;
|
||||||
function getGradleVersion() {
|
class GradleExecutionConfig {
|
||||||
return core.getInput('gradle-version');
|
getGradleVersion() {
|
||||||
|
return core.getInput('gradle-version');
|
||||||
|
}
|
||||||
|
getBuildRootDirectory() {
|
||||||
|
const baseDirectory = getWorkspaceDirectory();
|
||||||
|
const buildRootDirectoryInput = core.getInput('build-root-directory');
|
||||||
|
const resolvedBuildRootDirectory = buildRootDirectoryInput === ''
|
||||||
|
? path_1.default.resolve(baseDirectory)
|
||||||
|
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
|
||||||
|
return resolvedBuildRootDirectory;
|
||||||
|
}
|
||||||
|
getArguments() {
|
||||||
|
const input = core.getInput('arguments');
|
||||||
|
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
||||||
|
}
|
||||||
|
getDependencyResolutionTask() {
|
||||||
|
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
|
||||||
|
}
|
||||||
|
getAdditionalArguments() {
|
||||||
|
return core.getInput('additional-arguments');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.getGradleVersion = getGradleVersion;
|
exports.GradleExecutionConfig = GradleExecutionConfig;
|
||||||
function getBuildRootDirectory() {
|
|
||||||
return core.getInput('build-root-directory');
|
|
||||||
}
|
|
||||||
exports.getBuildRootDirectory = getBuildRootDirectory;
|
|
||||||
function getArguments() {
|
|
||||||
const input = core.getInput('arguments');
|
|
||||||
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
|
||||||
}
|
|
||||||
exports.getArguments = getArguments;
|
|
||||||
function getJobMatrix() {
|
function getJobMatrix() {
|
||||||
return core.getInput('workflow-job-context');
|
return core.getInput('workflow-job-context');
|
||||||
}
|
}
|
||||||
@ -142443,8 +142445,8 @@ function run() {
|
|||||||
try {
|
try {
|
||||||
yield setupGradle.setup(new input_params_1.CacheConfig(), new input_params_1.BuildScanConfig());
|
yield setupGradle.setup(new input_params_1.CacheConfig(), new input_params_1.BuildScanConfig());
|
||||||
yield dependencyGraph.setup(new input_params_1.DependencyGraphConfig());
|
yield dependencyGraph.setup(new input_params_1.DependencyGraphConfig());
|
||||||
const args = (0, input_params_1.getArguments)();
|
const config = new input_params_1.GradleExecutionConfig();
|
||||||
yield gradle.provisionAndMaybeExecute(args);
|
yield gradle.provisionAndMaybeExecute(config.getGradleVersion(), config.getBuildRootDirectory(), config.getArguments());
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.setFailed(String(error));
|
core.setFailed(String(error));
|
||||||
|
2
dist/setup-gradle/main/index.js.map
vendored
2
dist/setup-gradle/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
41
dist/setup-gradle/post/index.js
vendored
41
dist/setup-gradle/post/index.js
vendored
@ -138952,13 +138952,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.getArguments = exports.getBuildRootDirectory = exports.getGradleVersion = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
exports.parseNumericInput = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(42186));
|
const core = __importStar(__nccwpck_require__(42186));
|
||||||
const github = __importStar(__nccwpck_require__(95438));
|
const github = __importStar(__nccwpck_require__(95438));
|
||||||
const cache = __importStar(__nccwpck_require__(27799));
|
const cache = __importStar(__nccwpck_require__(27799));
|
||||||
const summary_1 = __nccwpck_require__(81327);
|
const summary_1 = __nccwpck_require__(81327);
|
||||||
const string_argv_1 = __nccwpck_require__(19663);
|
const string_argv_1 = __nccwpck_require__(19663);
|
||||||
|
const path_1 = __importDefault(__nccwpck_require__(71017));
|
||||||
class DependencyGraphConfig {
|
class DependencyGraphConfig {
|
||||||
getDependencyGraphOption() {
|
getDependencyGraphOption() {
|
||||||
const val = core.getInput('dependency-graph');
|
const val = core.getInput('dependency-graph');
|
||||||
@ -139131,19 +139135,30 @@ class BuildScanConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.BuildScanConfig = BuildScanConfig;
|
exports.BuildScanConfig = BuildScanConfig;
|
||||||
function getGradleVersion() {
|
class GradleExecutionConfig {
|
||||||
return core.getInput('gradle-version');
|
getGradleVersion() {
|
||||||
|
return core.getInput('gradle-version');
|
||||||
|
}
|
||||||
|
getBuildRootDirectory() {
|
||||||
|
const baseDirectory = getWorkspaceDirectory();
|
||||||
|
const buildRootDirectoryInput = core.getInput('build-root-directory');
|
||||||
|
const resolvedBuildRootDirectory = buildRootDirectoryInput === ''
|
||||||
|
? path_1.default.resolve(baseDirectory)
|
||||||
|
: path_1.default.resolve(baseDirectory, buildRootDirectoryInput);
|
||||||
|
return resolvedBuildRootDirectory;
|
||||||
|
}
|
||||||
|
getArguments() {
|
||||||
|
const input = core.getInput('arguments');
|
||||||
|
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
||||||
|
}
|
||||||
|
getDependencyResolutionTask() {
|
||||||
|
return core.getInput('dependency-resolution-task') || ':ForceDependencyResolutionPlugin_resolveAllDependencies';
|
||||||
|
}
|
||||||
|
getAdditionalArguments() {
|
||||||
|
return core.getInput('additional-arguments');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.getGradleVersion = getGradleVersion;
|
exports.GradleExecutionConfig = GradleExecutionConfig;
|
||||||
function getBuildRootDirectory() {
|
|
||||||
return core.getInput('build-root-directory');
|
|
||||||
}
|
|
||||||
exports.getBuildRootDirectory = getBuildRootDirectory;
|
|
||||||
function getArguments() {
|
|
||||||
const input = core.getInput('arguments');
|
|
||||||
return (0, string_argv_1.parseArgsStringToArgv)(input);
|
|
||||||
}
|
|
||||||
exports.getArguments = getArguments;
|
|
||||||
function getJobMatrix() {
|
function getJobMatrix() {
|
||||||
return core.getInput('workflow-job-context');
|
return core.getInput('workflow-job-context');
|
||||||
}
|
}
|
||||||
|
2
dist/setup-gradle/post/index.js.map
vendored
2
dist/setup-gradle/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user