mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-25 01:31:06 -05:00
Build outputs
This commit is contained in:
parent
a07019c726
commit
ff3f4cfbf8
4 changed files with 22 additions and 2 deletions
10
dist/main/index.js
vendored
10
dist/main/index.js
vendored
|
@ -72971,6 +72971,16 @@ class GradleStateCache {
|
||||||
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
||||||
}
|
}
|
||||||
initializeGradleUserHome(gradleUserHome, initScriptsDir) {
|
initializeGradleUserHome(gradleUserHome, initScriptsDir) {
|
||||||
|
const gradleProperties = path_1.default.resolve(gradleUserHome, 'gradle.properties');
|
||||||
|
const existingGradleProperties = fs_1.default.existsSync(gradleProperties)
|
||||||
|
? fs_1.default.readFileSync(gradleProperties, 'utf8')
|
||||||
|
: '';
|
||||||
|
if (!existingGradleProperties.includes('org.gradle.java.installations.fromEnv=')) {
|
||||||
|
fs_1.default.appendFileSync(gradleProperties, `
|
||||||
|
# Auto-detect pre-installed JDKs
|
||||||
|
org.gradle.java.installations.fromEnv=JAVA_HOME_8_X64,JAVA_HOME_11_X64,JAVA_HOME_17_X64
|
||||||
|
`);
|
||||||
|
}
|
||||||
const initScriptFilenames = [
|
const initScriptFilenames = [
|
||||||
'build-result-capture.init.gradle',
|
'build-result-capture.init.gradle',
|
||||||
'build-result-capture-service.plugin.groovy',
|
'build-result-capture-service.plugin.groovy',
|
||||||
|
|
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
10
dist/post/index.js
vendored
10
dist/post/index.js
vendored
|
@ -72971,6 +72971,16 @@ class GradleStateCache {
|
||||||
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
||||||
}
|
}
|
||||||
initializeGradleUserHome(gradleUserHome, initScriptsDir) {
|
initializeGradleUserHome(gradleUserHome, initScriptsDir) {
|
||||||
|
const gradleProperties = path_1.default.resolve(gradleUserHome, 'gradle.properties');
|
||||||
|
const existingGradleProperties = fs_1.default.existsSync(gradleProperties)
|
||||||
|
? fs_1.default.readFileSync(gradleProperties, 'utf8')
|
||||||
|
: '';
|
||||||
|
if (!existingGradleProperties.includes('org.gradle.java.installations.fromEnv=')) {
|
||||||
|
fs_1.default.appendFileSync(gradleProperties, `
|
||||||
|
# Auto-detect pre-installed JDKs
|
||||||
|
org.gradle.java.installations.fromEnv=JAVA_HOME_8_X64,JAVA_HOME_11_X64,JAVA_HOME_17_X64
|
||||||
|
`);
|
||||||
|
}
|
||||||
const initScriptFilenames = [
|
const initScriptFilenames = [
|
||||||
'build-result-capture.init.gradle',
|
'build-result-capture.init.gradle',
|
||||||
'build-result-capture-service.plugin.groovy',
|
'build-result-capture-service.plugin.groovy',
|
||||||
|
|
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue