diff --git a/build.gradle b/build.gradle index 57a83b9..db55291 100644 --- a/build.gradle +++ b/build.gradle @@ -12,19 +12,21 @@ compileJava { repositories { mavenLocal() + mavenCentral() maven { - url "https://oss.jfrog.org/artifactory/libs-snapshot" + url "https://releases.jfrog.io/artifactory/libs-snapshot" mavenContent { snapshotsOnly() } } maven { - url "https://oss.jfrog.org/artifactory/libs-release" + url "https://releases.jfrog.io/artifactory/libs-release" } } dependencies { - implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor', version: '2.21.0' + implementation group: 'org.jfrog.buildinfo', name: 'build-info-api', version: '2.26.1' + implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor', version: '2.26.1' implementation group: 'org.jfrog.artifactory.client', name: 'artifactory-java-client-services', version: '2.8.6' implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.4' implementation group: 'junit', name: 'junit', version: '4.13.1' diff --git a/src/main/java/com/jfrog/testing/IntegrationTestsHelper.java b/src/main/java/com/jfrog/testing/IntegrationTestsHelper.java index 587adc7..2396552 100644 --- a/src/main/java/com/jfrog/testing/IntegrationTestsHelper.java +++ b/src/main/java/com/jfrog/testing/IntegrationTestsHelper.java @@ -234,11 +234,12 @@ public void uploadFile(Path source, String repoKey) { * * @param buildName - Build name * @param buildNumber - Build number + * @param project - Build project * @return build info for the specified build name and number * @throws IOException if failed to get the build info. */ - public Build getBuildInfo(String buildName, String buildNumber) throws IOException { - return buildInfoClient.getBuildInfo(buildName, buildNumber); + public Build getBuildInfo(String buildName, String buildNumber, String project) throws IOException { + return buildInfoClient.getBuildInfo(buildName, buildNumber, project); } /**