mirror of
https://github.com/github/codeql.git
synced 2026-02-28 04:43:42 +01:00
Re-introduce deprecated versions of old Maven predicate names
This commit is contained in:
@@ -428,11 +428,21 @@ class MavenRepoJar extends File {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED: name changed to `getGroupId` for consistent use of camel-case.
|
||||
*/
|
||||
deprecated string getGroupID() { result = getGroupId() }
|
||||
|
||||
/**
|
||||
* Gets the `artifactId` of this jar.
|
||||
*/
|
||||
string getArtifactId() { result = getParentContainer().getParentContainer().getBaseName() }
|
||||
|
||||
/**
|
||||
* DEPRECATED: name changed to `getArtifactId` for consistent casing and consistent spelling with Maven.
|
||||
*/
|
||||
deprecated string getArtefactID() { result = getArtifactId() }
|
||||
|
||||
/**
|
||||
* Gets the artifact version string of this jar.
|
||||
*/
|
||||
@@ -446,6 +456,11 @@ class MavenRepoJar extends File {
|
||||
pom.getArtifact().getValue() = getArtifactId()
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED: name changed to `artifactMatches` for consistent spelling with Maven.
|
||||
*/
|
||||
deprecated predicate artefactMatches(ProtoPom pom) { artifactMatches(pom) }
|
||||
|
||||
/**
|
||||
* Holds if this jar is both an artifact for the POM, and has a version string that matches the POM
|
||||
* version string. Only soft and hard version matches are supported.
|
||||
|
||||
Reference in New Issue
Block a user