Skip to content

Commit 850820f

Browse files
committed
ESRP sign the packages to be compliant for release
1 parent e47a5a1 commit 850820f

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

azurefunctions/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ publishing {
7777
}
7878
}
7979

80-
// TODO: manual signing temporarily disabled, in favor of 1ES signing utils
81-
//signing {
82-
// sign publishing.publications.mavenJava
83-
//}
80+
signing {
81+
sign publishing.publications.mavenJava
82+
}
8483

8584
java {
8685
withSourcesJar()

azuremanaged/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ publishing {
110110
}
111111
}
112112

113+
signing {
114+
sign publishing.publications.mavenJava
115+
}
116+
113117
java {
114118
withSourcesJar()
115119
withJavadocJar()

client/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,9 @@ publishing {
173173
}
174174
}
175175

176-
// TODO: manual signing temporarily disabled, in favor of 1ES signing
177-
//signing {
178-
// sign publishing.publications.mavenJava
179-
//}
176+
signing {
177+
sign publishing.publications.mavenJava
178+
}
180179

181180
java {
182181
withSourcesJar()

eng/templates/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ jobs:
88
artifact: drop
99
sbomBuildDropPath: $(System.DefaultWorkingDirectory)
1010
sbomPackageName: 'Durable Task / Durable Functions Java SBOM'
11-
1211
steps:
1312
- checkout: self
1413

@@ -25,9 +24,15 @@ jobs:
2524
jdkArchitectureOption: 'x64'
2625
publishJUnitResults: false
2726
tasks: clean assemble
28-
displayName: Assemble durabletask-client and durabletask-azure-functions
27+
displayName: Assemble durabletask-client and durabletask-azure-functions and durabletask-azuremanaged
28+
29+
# the secring.gpg file is required to sign the artifacts, it's generated from GnuPG, and it's stored in the library of the durabletaskframework ADO
30+
- task: DownloadSecureFile@1
31+
name: gpgSecretFile
32+
displayName: 'Download GPG secret file'
33+
inputs:
34+
secureFile: 'secring.gpg'
2935

30-
# TODO: add 1ES-level signing
3136
- task: Gradle@3
3237
inputs:
3338
workingDirectory: ''
@@ -37,7 +42,8 @@ jobs:
3742
jdkVersionOption: 1.11
3843
jdkArchitectureOption: 'x64'
3944
tasks: publish
40-
displayName: Publish durabletask-client and durabletask-azure-functions
45+
options: '-Psigning.keyId=$(gpgSignKey) -Psigning.password=$(gpgSignPassword) -Psigning.secretKeyRingFile=$(gpgSecretFile.secureFilePath)'
46+
displayName: Publish durabletask-client and durabletask-azure-functions and durabletask-azuremanaged
4147

4248
- task: CopyFiles@2
4349
displayName: 'Copy publish file to Artifact Staging Directory'

0 commit comments

Comments
 (0)