Skip to content

Commit

Permalink
Use processIsolation for SigstoreSignFilesTask to avoid OutOfMemory: …
Browse files Browse the repository at this point in the history
…MetaSpace

see gradle/gradle#18313

Signed-off-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  • Loading branch information
vlsi committed Jan 12, 2023
1 parent 60b0b7a commit ec8ea56
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ abstract class SigstoreSignFilesTask : DefaultTask() {
@TaskAction
protected fun sign() {
workerExecutor
.classLoaderIsolation { classpath.from(sigstoreClientClasspath) }
.processIsolation {
classpath.from(sigstoreClientClasspath)
forkOptions {
environment(System.getenv())
}
}
.run {
for (signature in signatures) {
submit(SignWorkAction::class.java) {
Expand Down

0 comments on commit ec8ea56

Please sign in to comment.