I have a build.gradle file as follows :
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.apache.avro', name: 'avro-tools', version:'1.10.2'
implementation group: 'org.apache.spark', name: 'spark-core_2.12', version:'2.4.1'
}
test {
useJUnitPlatform()
}
I get the following error out put :
Could not find avro-mapred-1.10.2-hadoop2.jar (org.apache.avro:avro-mapred:1.10.2).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/apache/avro/avro-mapred/1.10.2/avro-mapred-1.10.2-hadoop2.jar
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html