Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command timeout to dependency checker
- Loading branch information
1 parent
15e92bc
commit 4a38941
Showing
11 changed files
with
76 additions
and
14 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
18 changes: 16 additions & 2 deletions
18
...dency-checker/src/main/java/com/freenow/sauron/plugins/generator/DependencyGenerator.java
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 |
---|---|---|
@@ -1,8 +1,22 @@ | ||
package com.freenow.sauron.plugins.generator; | ||
|
||
import com.freenow.sauron.properties.PluginsConfigurationProperties; | ||
import java.nio.file.Path; | ||
|
||
public interface DependencyGenerator | ||
public abstract class DependencyGenerator | ||
{ | ||
Path generateCycloneDxBom(Path repositoryPath); | ||
private static final Integer DEFAULT_COMMAND_TIMEOUT_MINUTES = 10; | ||
|
||
protected final Integer commandTimeoutMinutes; | ||
|
||
|
||
protected DependencyGenerator(PluginsConfigurationProperties properties) | ||
{ | ||
commandTimeoutMinutes = properties.getPluginConfigurationProperty("dependency-checker", "commandTimeoutMinutes") | ||
.map(Integer.class::cast) | ||
.orElse(DEFAULT_COMMAND_TIMEOUT_MINUTES); | ||
} | ||
|
||
|
||
public abstract Path generateCycloneDxBom(Path repositoryPath); | ||
} |
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
8 changes: 8 additions & 0 deletions
8
...ain/java/com/freenow/sauron/plugins/generator/gradle/GradleGroovyDependencyGenerator.java
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
8 changes: 8 additions & 0 deletions
8
.../java/com/freenow/sauron/plugins/generator/gradle/GradleKotlinDslDependencyGenerator.java
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
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