I have some snapshot artifacts deployed to Sonatype that I’d like to perform some verification against, however, when attempting to build the javadocs, Gradle is only searching Maven central vs the defined Sonatype repository - the build itself is fine.
Here’s the error:
> Could not resolve all files for configuration ':javadocAggregatorClasspath'.
> Could not find com.oracle.coherence.ce:coherence-bom:22.06-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/oracle/coherence/ce/coherence-bom/22.06-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/oracle/coherence/ce/coherence-bom/22.06-SNAPSHOT/coherence-bom-22.06-SNAPSHOT.pom
The build script:
buildscript {
repositories {
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "io.micronaut.build.internal:micronaut-gradle-plugins:5.3.10"
}
}
subprojects { Project subproject ->
group "io.micronaut.coherence"
ext {
micronautVersion = '3.5.2'
}
repositories {
//jcenter()
mavenCentral()
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
mavenContent {
snapshotsOnly()
}
}
maven { url "https://oss.sonatype.org/content/groups/staging" }
mavenLocal()
}
...