Skip to content

Commit

Permalink
Make BuildInfoRecorder.java thread safe (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeangelis83 authored Sep 26, 2023
1 parent 24a8afe commit 868c74a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ private void addDependencies(MavenProject project) {

// if recordAllDependencies=true, add build time dependencies
if (conf.publisher.isRecordAllDependencies()) {
dependencies.addAll(buildTimeDependencies);
synchronized(buildTimeDependencies) {
dependencies.addAll(buildTimeDependencies);
}
}

currentModuleDependencies.set(dependencies);
Expand Down

0 comments on commit 868c74a

Please sign in to comment.