Re-introduce deprecated versions of old Maven predicate names

This commit is contained in:
Chris Smowton
2021-02-12 12:24:19 +00:00
parent 942ae7ef47
commit 655cfb3a47

View File

@@ -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.