Skip to content

Commit

Permalink
Update Mac build logic to include upstream cacerts and Amazon cacerts
Browse files Browse the repository at this point in the history
  • Loading branch information
jguo11 committed Jul 11, 2019
1 parent 9b8031b commit ac79d31
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions installers/mac/tar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,20 @@ task copySource(type: Copy) {
into buildRoot
}

task configureBuild(type: Exec) {
task importAmazonCacerts(type: Exec) {
dependsOn copySource
workingDir buildRoot
// Default password for JSSE key store
def keystore_password = "changeit"
commandLine 'keytool', '-importkeystore', '-noprompt',
'-srckeystore', "amazon-cacerts",
'-srcstorepass', keystore_password,
'-destkeystore', 'src/src/java.base/share/lib/security/cacerts',
'-deststorepass', keystore_password
}

task configureBuild(type: Exec) {
dependsOn importAmazonCacerts
workingDir "$buildRoot/src"
def commands = ['bash', 'configure',
'--with-jvm-features=zgc',
Expand All @@ -53,7 +65,7 @@ task configureBuild(type: Exec) {
"--with-vendor-bug-url=https://github.com/corretto/corretto-${version.major}/issues/",
'--with-debug-level=release',
'--with-native-debug-symbols=none',
"--with-cacerts-file=$buildRoot/cacerts"]
"--with-cacerts-file=$buildRoot/src/src/java.base/share/lib/security/cacerts"]
def extraCmd = System.getenv("EXTRA_CORRETTO_CONFIG_OPTIONS")
if (extraCmd != null) {
commands += extraCmd.split(" ")
Expand Down

0 comments on commit ac79d31

Please sign in to comment.