Merge pull request #5105 from JLLeitschuh/feat/JLL/depricated_bintray_usage

CWE-1104: Maven POM dependence upon Bintray/JCenter
This commit is contained in:
Anders Schack-Mulligen
2021-02-25 09:08:31 +01:00
committed by GitHub
10 changed files with 203 additions and 13 deletions

View File

@@ -368,6 +368,19 @@ class PomProperty extends PomElement {
PomProperty() { getParent() instanceof PomProperties }
}
/**
* An XML element representing any kind of repository declared inside of a Maven POM XML file.
*/
class DeclaredRepository extends PomElement {
DeclaredRepository() { this.getName() = ["repository", "snapshotRepository", "pluginRepository"] }
/**
* Gets the url for this repository. If the `url` tag is present, this will
* be the string contents of that tag.
*/
string getUrl() { result = getAChild("url").(PomElement).getValue() }
}
/**
* A folder that represents a local Maven repository using the standard layout. Any folder called
* "repository" with a parent name ".m2" is considered to be a Maven repository.