mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 02:16:19 +08:00
Build outputs
This commit is contained in:
parent
a07019c726
commit
ff3f4cfbf8
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);
|
||||
}
|
||||
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 = [
|
||||
'build-result-capture.init.gradle',
|
||||
'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);
|
||||
}
|
||||
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 = [
|
||||
'build-result-capture.init.gradle',
|
||||
'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…
x
Reference in New Issue
Block a user