-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replacing the existing ant/sbt build system with gradle gradle is a much more modern build system then ant it has a richer feature set, better IDE support and will be easier to maintain going forward it's self installing using the included gradle wrapper and runs in the jvm removing checked in intellij files you will need to regenerate your intellij project it is now trivial to create a correctly configured intellij project by File -> New -> Project from Existing Sources -> Gradle -> choose use default gradle wrapper this should help reduce pain from changing personal project configurations updated tests to be more robust to random order test execution and with new test data path updated travis build replacing build.xml with a simple wrapper that calls through to gradle Example gradle usage: to compile htsjdk or it's tests ./gradlew compileJava ./gradlew compileTest to build a jar ./gradlew jar to build a jar, along with source and document jars ./gradlew build to build a jar that packages all of htsjdk's dependencies in a single jar ./gradlew shadowJar to run tests, or a single test, or run a test and wait for the debugger ./gradlew test ./gradlew test --tests "*AlleleUnitTest" ./gradlew test --tests "*AlleleUnitTest" --debug-jvm to clean the project directory ./gradlew clean to see an exhaustive list of all available targets ./gradlew tasks Projects that import htsjdk through maven central should be unaffected by these changes. Projects that include an htsjdk jar in their libs will now find the jar in build/libs/ after running ./gradlew shadowJar this "shadow jar" includes all of htsjdk's dependencies bundled within it an htsjdk only jar can be built with ./gradlew jar
- Loading branch information
1 parent
909381a
commit 1d052a3
Showing
91 changed files
with
636 additions
and
1,821 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
htsjdk.iws | ||
.command_tmp | ||
classes | ||
testclasses | ||
javadoc | ||
dist | ||
contracts | ||
atlassian-ide-plugin.xml | ||
intellij.testclasses | ||
intellij.classes | ||
/htsjdk.version.properties | ||
/bin | ||
/test-output | ||
target | ||
.idea/libraries | ||
.idea/workspace.xml | ||
|
||
#intellij | ||
.idea/ | ||
src/htsjdk.iml | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
|
||
|
||
|
||
#gradle stuff | ||
.gradle/ | ||
build/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
language: java | ||
dist: trusty | ||
sudo: true | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
- $HOME/.m2 | ||
jdk: | ||
- oraclejdk8 | ||
install: ant | ||
script: ant all test sra-test | ||
script: ./gradlew test testSRA testIntelDeflater | ||
after_success: | ||
- echo "TRAVIS_BRANCH='$TRAVIS_BRANCH'"; | ||
echo "JAVA_HOME='$JAVA_HOME'"; | ||
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$JAVA_HOME" == "/usr/lib/jvm/java-8-oracle" ]; then | ||
sbt \ | ||
'set buildSnapshot := true' \ | ||
'set javacOptions in (Compile, doc) ++= Seq("-quiet")' \ | ||
'set test in publish := {}' \ | ||
'set resolvers += Resolver.url("bintray-sbt-plugin-releases", url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)' \ | ||
'set publishTo := Option("artifactory-snapshots-publish" at "https://artifactory.broadinstitute.org/artifactory/libs-snapshot-local;build.timestamp=" + new java.util.Date().getTime)' \ | ||
"set credentials += Credentials(\"Artifactory Realm\", \"artifactory.broadinstitute.org\", \"${ARTIFACTORY_USERNAME}\", \"${ARTIFACTORY_PASSWORD}\")" \ | ||
publish; | ||
if [ "$TRAVIS_BRANCH" == "master" ]; then | ||
./gradlew uploadArchives; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.