Resolution

ARTIFACTORY: Why is the Artifactory Jenkins plugin only resolving from one repository and how to resolve from the build.gradle settings instead

AuthorFullName__c
Derek Pang
articleNumber
000006093
ft:sourceType
Salesforce
FirstPublishedDate
2024-05-15T07:46:09Z
lastModifiedDate
2024-05-15
VersionNumber
2
To resolve this issue you will have to take out the resolver in the Gradle run (i.e. comment out resolverId: "GRADLE_RESOLVER") or you can set this Gradle property in the settings.gradle:
dependencyResolutionManagement {
 repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
}

The change in 4.0.1 and above of the Jenkins Artifactory plugin sets the RepositoriesMode.PREFER_SETTINGS Gradle property when utilized. So setting it to PREFER_PROJECT will cause the build to instead use the build.gradle configurations again.