0
I am having spring boot(2.19.RELEASE) gradle project…but its not able download the first dependencies (oa-common.3.0.0.jar) It looks like its not going to artifactory to fetch it…even though its mentioned in the repositories…what I am doing wrong…any suggestion?
My build.gradle file
repositories {
mavenCentral()
mavenLocal()
maven {
url "${artifactory_contextUrl}"
credentials {
username "${artifactory_user}"
password "${artifactory_password}"
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation('com.ge.digital.oa.common:oa-common:3.0.0') {
exclude module: 'slf4j-log4j12'
exclude group: 'io.micrometer', module: 'micrometer-core'
}
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.springframework.boot:spring-boot-starter-jdbc')
implementation('org.springframework.boot:spring-boot-starter-web')
We have the artifacory jar My Artifactory path:
ARJLY
com/ge
digital/oa
common
oa-common
3.0.0
oa-common-3.0.0.jar
Error:
$ gradle clean build --refresh-dependencies
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.ge.digital.oa.common:oa-common:3.0.0.
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 18s
3 actionable tasks: 3 executed