mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-28 20:15:22 +00:00
Generate 3rd party dependency license report and make it visible from
the UI. Also, for the core build, require that all the dependency licenses are available.
This commit is contained in:
1 parent
2eae2b1cde
commit
0ae70779be
11 files changed
+286
-3
No files matched your search
@@ -397,6 +397,15 @@ public class PluginWrapper implements Comparable<PluginWrapper> {
|
||||
return manifest.getMainAttributes().getValue("Plugin-Class");
|
||||
}
|
||||
|
||||
public boolean hasLicensesXml() {
|
||||
try {
|
||||
new URL(baseResourceURL,"WEB-INF/licenses.xml").openStream().close();
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes sure that all the dependencies exist, and then accept optional dependencies
|
||||
* as real dependencies.
|
||||
|
||||
Reference in new issue
Block a user