Build outputs

This commit is contained in:
daz 2024-04-09 08:50:24 -06:00
parent 92975d7f32
commit cfe478af6a
No known key found for this signature in database
8 changed files with 131 additions and 95 deletions

View file

@ -141501,16 +141501,18 @@ function run() {
if (config.getDependencyGraphOption() === input_params_1.DependencyGraphOption.DownloadAndSubmit) {
return;
}
const additionalArgs = core.getInput('additional-arguments');
const executionConfig = new input_params_1.GradleExecutionConfig();
const taskList = executionConfig.getDependencyResolutionTask();
const additionalArgs = executionConfig.getAdditionalArguments();
const executionArgs = `
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
:ForceDependencyResolutionPlugin_resolveAllDependencies
${taskList}
${additionalArgs}
`;
const args = (0, string_argv_1.parseArgsStringToArgv)(executionArgs);
yield gradle.provisionAndMaybeExecute(args);
yield gradle.provisionAndMaybeExecute(executionConfig.getGradleVersion(), executionConfig.getBuildRootDirectory(), args);
yield dependencyGraph.complete(config);
}
catch (error) {
@ -141593,16 +141595,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.provisionAndMaybeExecute = void 0;
const core = __importStar(__nccwpck_require__(42186));
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 gradlew = __importStar(__nccwpck_require__(46807));
const input_params_1 = __nccwpck_require__(23885);
function provisionAndMaybeExecute(args) {
function provisionAndMaybeExecute(gradleVersion, buildRootDirectory, args) {
return __awaiter(this, void 0, void 0, function* () {
const executable = yield provisioner.provisionGradle();
const executable = yield provisioner.provisionGradle(gradleVersion);
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 toolCache = __importStar(__nccwpck_require__(27784));
const gradlew = __importStar(__nccwpck_require__(46807));
const params = __importStar(__nccwpck_require__(23885));
const cache_utils_1 = __nccwpck_require__(11044);
const input_params_1 = __nccwpck_require__(23885);
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions';
function provisionGradle() {
function provisionGradle(gradleVersion) {
return __awaiter(this, void 0, void 0, function* () {
const gradleVersion = params.getGradleVersion();
if (gradleVersion !== '' && gradleVersion !== 'wrapper') {
return addToPath(yield installGradle(gradleVersion));
}
@ -141960,13 +141949,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
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 github = __importStar(__nccwpck_require__(95438));
const cache = __importStar(__nccwpck_require__(27799));
const summary_1 = __nccwpck_require__(81327);
const string_argv_1 = __nccwpck_require__(19663);
const path_1 = __importDefault(__nccwpck_require__(71017));
class DependencyGraphConfig {
getDependencyGraphOption() {
const val = core.getInput('dependency-graph');
@ -142139,19 +142132,30 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
function getGradleVersion() {
return core.getInput('gradle-version');
class GradleExecutionConfig {
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;
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;
exports.GradleExecutionConfig = GradleExecutionConfig;
function getJobMatrix() {
return core.getInput('workflow-job-context');
}

File diff suppressed because one or more lines are too long

View file

@ -92728,13 +92728,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
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 github = __importStar(__nccwpck_require__(5438));
const cache = __importStar(__nccwpck_require__(7799));
const summary_1 = __nccwpck_require__(1327);
const string_argv_1 = __nccwpck_require__(9663);
const path_1 = __importDefault(__nccwpck_require__(1017));
class DependencyGraphConfig {
getDependencyGraphOption() {
const val = core.getInput('dependency-graph');
@ -92907,19 +92911,30 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
function getGradleVersion() {
return core.getInput('gradle-version');
class GradleExecutionConfig {
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;
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;
exports.GradleExecutionConfig = GradleExecutionConfig;
function getJobMatrix() {
return core.getInput('workflow-job-context');
}

File diff suppressed because one or more lines are too long

View file

@ -141512,16 +141512,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.provisionAndMaybeExecute = void 0;
const core = __importStar(__nccwpck_require__(42186));
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 gradlew = __importStar(__nccwpck_require__(46807));
const input_params_1 = __nccwpck_require__(23885);
function provisionAndMaybeExecute(args) {
function provisionAndMaybeExecute(gradleVersion, buildRootDirectory, args) {
return __awaiter(this, void 0, void 0, function* () {
const executable = yield provisioner.provisionGradle();
const executable = yield provisioner.provisionGradle(gradleVersion);
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 toolCache = __importStar(__nccwpck_require__(27784));
const gradlew = __importStar(__nccwpck_require__(46807));
const params = __importStar(__nccwpck_require__(23885));
const cache_utils_1 = __nccwpck_require__(11044);
const input_params_1 = __nccwpck_require__(23885);
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions';
function provisionGradle() {
function provisionGradle(gradleVersion) {
return __awaiter(this, void 0, void 0, function* () {
const gradleVersion = params.getGradleVersion();
if (gradleVersion !== '' && gradleVersion !== 'wrapper') {
return addToPath(yield installGradle(gradleVersion));
}
@ -141879,13 +141866,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
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 github = __importStar(__nccwpck_require__(95438));
const cache = __importStar(__nccwpck_require__(27799));
const summary_1 = __nccwpck_require__(81327);
const string_argv_1 = __nccwpck_require__(19663);
const path_1 = __importDefault(__nccwpck_require__(71017));
class DependencyGraphConfig {
getDependencyGraphOption() {
const val = core.getInput('dependency-graph');
@ -142058,19 +142049,30 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
function getGradleVersion() {
return core.getInput('gradle-version');
class GradleExecutionConfig {
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;
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;
exports.GradleExecutionConfig = GradleExecutionConfig;
function getJobMatrix() {
return core.getInput('workflow-job-context');
}
@ -142443,8 +142445,8 @@ function run() {
try {
yield setupGradle.setup(new input_params_1.CacheConfig(), new input_params_1.BuildScanConfig());
yield dependencyGraph.setup(new input_params_1.DependencyGraphConfig());
const args = (0, input_params_1.getArguments)();
yield gradle.provisionAndMaybeExecute(args);
const config = new input_params_1.GradleExecutionConfig();
yield gradle.provisionAndMaybeExecute(config.getGradleVersion(), config.getBuildRootDirectory(), config.getArguments());
}
catch (error) {
core.setFailed(String(error));

File diff suppressed because one or more lines are too long

View file

@ -138952,13 +138952,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
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 github = __importStar(__nccwpck_require__(95438));
const cache = __importStar(__nccwpck_require__(27799));
const summary_1 = __nccwpck_require__(81327);
const string_argv_1 = __nccwpck_require__(19663);
const path_1 = __importDefault(__nccwpck_require__(71017));
class DependencyGraphConfig {
getDependencyGraphOption() {
const val = core.getInput('dependency-graph');
@ -139131,19 +139135,30 @@ class BuildScanConfig {
}
}
exports.BuildScanConfig = BuildScanConfig;
function getGradleVersion() {
return core.getInput('gradle-version');
class GradleExecutionConfig {
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;
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;
exports.GradleExecutionConfig = GradleExecutionConfig;
function getJobMatrix() {
return core.getInput('workflow-job-context');
}

File diff suppressed because one or more lines are too long