Skip to content

Commit ab89ab9

Browse files
committed
Remove "snappy" dependency
1 parent 1bb1bd1 commit ab89ab9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ dependencies {
111111
[group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'],
112112
[group: 'commons-io', name: 'commons-io', version: '2.7'],
113113
[group: 'org.apache.commons', name: 'commons-compress', version: '1.26.0'],
114-
[group: 'org.xerial.snappy', name: 'snappy-java', version: '1.1.10.4'],
115114
[group: 'org.apache.commons', name: 'commons-jexl', version: '2.1.1'],
116115
[group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'],
117116
[group: 'com.github.samtools', name: 'htsjdk', version: '4.1.1'],
@@ -186,7 +185,6 @@ tasks.withType(Test) {
186185
systemProperties['make.fail'] = 'false'
187186
systemProperties['include.longrunning'] = 'false'
188187
systemProperties['ignore.ioexceptions'] = 'false'
189-
systemProperties['org.xerial.snappy.tempdir'] = 'build/tmp'
190188
maxHeapSize = '2g'
191189
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
192190
useJUnitPlatform()

Diff for: src/main/java/org/broad/igv/tools/sort/AsciiSorter.java

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public AsciiSorter(File inputFile, File outputFile) {
6868
this.writeStdOut = outputFile == null;
6969
this.tmpDir = new File(System.getProperty("java.io.tmpdir"), System.getProperty("user.name"));
7070

71-
System.setProperty("snappy.disable", "true");
7271
if (!tmpDir.exists()) {
7372
tmpDir.mkdir();
7473
}

Diff for: src/main/java/org/broad/igv/ui/IGV.java

+3
Original file line numberDiff line numberDiff line change
@@ -1884,6 +1884,9 @@ public void run() {
18841884

18851885
final IGVPreferences preferences = PreferencesManager.getPreferences();
18861886

1887+
// Disable "snappy", used by htsjdk for sorting but not supported by IGV
1888+
System.setProperty("snappy.disable", "true");
1889+
18871890
// Start CommandsServer **before** loading the initial genome, as credentials might need to be set for
18881891
// privately hosted genomes.
18891892
startCommandsServer(igvArgs, preferences);

0 commit comments

Comments
 (0)