Entering edit mode
6 weeks ago
Meghan.T
•
0
I am trying to install picard form its github repo:
git clone https://github.com/broadinstitute/picard.git
cd picard/
But when I try to build it according to the instruction ./gradlew shadowJar
I get the following errors:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'picard'.
Could not resolve all files for configuration ':classpath'.
Could not resolve org.ajoberstar.grgit:grgit-gradle:5.2.0.
Required by:
project : > org.ajoberstar.grgit:org.ajoberstar.grgit.gradle.plugin:5.2.0
No matching variant of org.ajoberstar.grgit:grgit-gradle:5.2.0 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.5' but:
- Variant 'apiElements' capability org.ajoberstar.grgit:grgit-gradle:5.2.0 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'javadocElements' capability org.ajoberstar.grgit:grgit-gradle:5.2.0 declares a component for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'runtimeElements' capability org.ajoberstar.grgit:grgit-gradle:5.2.0 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'sourcesElements' capability org.ajoberstar.grgit:grgit-gradle:5.2.0 declares a component for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
Could not find org.ajoberstar.grgit:grgit-core:3.1.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/ajoberstar/grgit/grgit-core/3.1.1/grgit-core-3.1.1.pom
- https://plugins.gradle.org/m2/org/ajoberstar/grgit/grgit-core/3.1.1/grgit-core-3.1.1.pom
Required by:
project : > org.ajoberstar.git-publish:org.ajoberstar.git-publish.gradle.plugin:2.1.1 > org.ajoberstar:gradle-git-publish:2.1.1
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.
BUILD FAILED in 24s
I have checked and I have Java 17 installed ( when I try java -version
I get version 17 ), I was wondering if someone had the same issue and was able to fix it. I would also appreciate any advice you have about this.
Thank you for your response. Th issue I have with the picard.jar file is, when I try to run markduplicates like this
java -jar ~/picard.jar MarkDuplicates -I alignment.sort.bam -O dedup.bam -M metrics.txt -VALIDATION_STRINGENCY LENIENT -REMOVE_DUPLICATES true
I get the following errors:Did you create
ReadGroups
when you made the BAM? See: https://gatk.broadinstitute.org/hc/en-us/articles/360035890671-Read-groupsIf you did not then you will need to add them.
this is unrelated to your original question, please close that one and ask a new question.
Did you mean to delete the post? I can't find a close option unfortunately.
Not delete this post. Pierre was asking you to post the comment above with the error as a new question since it is not related to your original post.
Oh,I see. I'll do that.