-
Notifications
You must be signed in to change notification settings - Fork 593
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
Change gatkDoc and gatkTabComplete build tasks to include Picard. #3683
Conversation
Fixes #3627. |
Codecov Report
@@ Coverage Diff @@
## master #3683 +/- ##
===============================================
+ Coverage 79.402% 79.408% +0.007%
- Complexity 17369 17370 +1
===============================================
Files 1139 1139
Lines 62690 62681 -9
Branches 9527 9526 -1
===============================================
- Hits 49777 49774 -3
+ Misses 9112 9109 -3
+ Partials 3801 3798 -3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two suggestions for grabbing the dogen source dependencies not only for Picard...
build.gradle
Outdated
@@ -112,7 +113,8 @@ dependencies { | |||
testCompile(javadocJDKFiles) | |||
|
|||
compile 'org.broadinstitute:barclay:1.2.1' | |||
compile 'com.github.broadinstitute:picard:2.12.2' | |||
compile 'com.github.broadinstitute:picard:' + picardVersion | |||
compileOnly 'com.github.broadinstitute:picard:' + picardVersion + ':sources' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a new configuration for this, to being able to include more in the future:
configurations {
## requires the ":sources" marker
docgen {
transitive false
}
}
..
dependencies {
..
docgen 'com.github.broadinstitute:picard:' + picardVersion + ':sources'
..
}
build.gradle
Outdated
@@ -481,7 +496,7 @@ task gatkDoc(type: Javadoc, dependsOn: classes) { | |||
into gatkDocDir | |||
} | |||
} | |||
source = sourceSets.main.allJava | |||
source = sourceSets.main.allJava + getPicardJavaSourceFiles(picardVersion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that getPicardJavaSourceFiles
can be removed and being simplify the gatkDoc/gatkTabComplete by using:
final docSources = configurations.docgen.collect { zipTree(it) }
source = files(docSources) + sourceSets.main.allJava
include '**/*.java'
This will also help to include new dependencies in the code and not only Picard....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@magicDGS - thanks - I'll try that. Although I don't imagine we'll add any more source sets like this, your suggestion seems cleaner all around.
e020088
to
ae761d1
Compare
@lbergelson You want to have a look at this one before merge? |
@droazen Do we want merged javadoc as well (I included that here) ? |
build.gradle
Outdated
compile.exclude group: 'com.esotericsoftware.kryo' | ||
|
||
externalSourceConfiguration { | ||
// External sources we need for doc and tab completion generation tasks )i.e., Picard sources) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo ) is facing the wrong way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One really minor comment 👍 to merge. Gradle stuff seems sane.
@magicDGS Thanks for that suggestion. |
ae761d1
to
1d4b093
Compare
No description provided.