-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from nebula-plugins/publish-verification-conf…
…ig-cache
- Loading branch information
Showing
7 changed files
with
71 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...roovy/nebula/plugin/publishing/verification/VerificationViolationsCollectorService.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package nebula.plugin.publishing.verification | ||
|
||
import org.gradle.api.services.BuildService | ||
import org.gradle.api.services.BuildServiceParameters | ||
|
||
import java.util.concurrent.ConcurrentHashMap | ||
|
||
abstract class VerificationViolationsCollectorService implements BuildService<BuildServiceParameters.None>, AutoCloseable { | ||
private final Map<String, ViolationsContainer> collector | ||
|
||
VerificationViolationsCollectorService() { | ||
this.collector = new ConcurrentHashMap<>() | ||
} | ||
|
||
void addProject(String projectName, ViolationsContainer violationsContainer) { | ||
collector.put(projectName, violationsContainer) | ||
} | ||
|
||
Map<String, ViolationsContainer> getCollector() { | ||
return collector | ||
} | ||
|
||
@Override | ||
void close() { | ||
collector.clear() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters