Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Build failed for net.researchgate.release #394

Open
Kajalagg98 opened this issue Feb 4, 2025 · 0 comments
Open

Gradle Build failed for net.researchgate.release #394

Kajalagg98 opened this issue Feb 4, 2025 · 0 comments

Comments

@Kajalagg98
Copy link

Kajalagg98 commented Feb 4, 2025

Hi,
We are using Gradle 5.5 and net.researchgate.release version 2.8.1 .
When we are running gradle build we are getting following error

FAILURE: Build failed with an exception.

* Where:
Build file '/home/runners/actions-runner/_work/sp-detection-strategy/sp-detection-strategy/build.gradle' line: [34](https://github.expedia.biz/ECP/sp-detection-strategy/actions/runs/33791822/job/52549335?pr=751#step:5:35)

* What went wrong:
Plugin [id: 'net.researchgate.release', version: '2.8.1'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'net.researchgate.release:net.researchgate.release.gradle.plugin:3.1.0')
  Searched in the following repositories:
    maven(https://artylab.expedia.biz/public-maven-virtual)

Following is our build.gradle code piece

buildscript {
    repositories {
        maven {
            url "$artifactory_base_url/public-maven-virtual"
            credentials {
                username = "${artifactory_user}"
                password = "${artifactory_password}"
            }
        }
        maven {
            url "$artifactory_base_url/eg-maven-release-local"
            credentials {
                username = "${artifactory_user}"
                password = "${artifactory_password}"
            }
        }
    }
    dependencies {
        classpath "org.scoverage:gradle-scoverage:${rev_gradle_scoverage}"
        classpath "com.github.maiflai:gradle-scalatest:${rev_gradle_scalatest}"
        classpath "com.amazonaws:aws-java-sdk:${rev_aws_sdk}"
        classpath ("com.github.jengelman.gradle.plugins:shadow:${rev_gradle_shadow_plugin}"){
            exclude group: "org.apache.logging.log4j", module: "log4j-core"
        }
    }
}

plugins {
    id 'net.researchgate.release' version '3.1.0'
    id 'maven-publish'
}

We checked credentials are correct and this artifact version exist in https://artylab.expedia.biz/public-maven-virtual.

Image

Can you please help us resolving this issue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant