Skip to content

Commit 8d92c5f

Browse files
Declare api and implementation dependencies to align with code usages (#57)
1 parent 8ae8e16 commit 8d92c5f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

SequenceAnalysis/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ dependencies {
3131
exclude group: "org.apache.commons", module: "commons-collections4"
3232
}
3333

34+
external "commons-net:commons-net:${commonsNetVersion}"
35+
apiImplementation "org.apache.commons:commons-math3:${commonsMath3Version}"
36+
external "org.apache.commons:commons-math3:${commonsMath3Version}"
3437
BuildUtils.addLabKeyDependency(project: project, config: "modules", depProjectPath: ":server:modules:LabDevKitModules:laboratory", depProjectConfig: "published", depExtension: "module")
3538
BuildUtils.addLabKeyDependency(project: project, config: "modules", depProjectPath: ":server:modules:LabDevKitModules:LDK", depProjectConfig: "published", depExtension: "module")
3639
}
@@ -61,4 +64,4 @@ if (project.findProject(BuildUtils.getTestProjectPath(project.gradle)) != null &
6164
testProject.tasks.named("startTomcat").configure {
6265
dependsOn(createPipelineConfigTask)
6366
}
64-
}
67+
}

SequenceAnalysis/resources/credits/dependencies.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ bzip2-0.9.1.jar
66
sam-1.96.jar
77
commons-math3-3.6.1.jar
88
picard-2.22.4.jar
9+
commons-net-3.5.jar

SequenceAnalysis/resources/credits/jars.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ sam-1.96.jar|picard tools|1.96|{link:picard tools|http://sourceforge.net/project
55
biojava3-core-3.0.7.jar|biojava3-core|3.0.7|{link:biojava|http://biojava.org/wiki/Main_Page}|{link:GNU Lesser GPL V2.1|http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html}|bbimber|Java framework for processing biological data
66
biojava3-genome-3.0.7.jar|biojava3-genome|3.0.7|{link:biojava|http://biojava.org/wiki/Main_Page}|{link:GNU Lesser GPL V2.1|http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html}|bbimber|Java framework for processing biological data
77
commons-math3-3.6.1.jar|commons-math|3-3.6.1|{link:commons-math|http://commons.apache.org/proper/commons-math/}|{link:Apache License, Version 2.0|http://www.apache.org/licenses/LICENSE-2.0.txt}|bbimber|Self-contained mathematics and statistics components
8+
commons-net-3.5.jar|Commons Net|3.3|{link:Apache|http://jakarta.apache.org/commons/net/}|{link:Apache 2.0|http://www.apache.org/licenses/LICENSE-2.0}|bbimber|FTPClient used to retrieve resources from other servers (e.g., GO annotations)
89
htsjdk-2.21.3.jar|htsjdk|2.21.3|{link:htsjdk|http://samtools.github.io/htsjdk/}|{link:MIT License|http://opensource.org/licenses/MIT}|bbimber|Description A Java API for high-throughput sequencing data (HTS) formats
910
picard-2.22.4.jar|Picard Tools Lib|2.22.4|{link:PicardTools|https://github.com/broadinstitute/picard}|{link:Apache 2.0|http://www.apache.org/licenses/LICENSE-2.0}|bbimber|Manipulating Sequence Data
10-
{table}
11+
{table}

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util/FastqcRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ private List<String> getBaseParams() throws FileNotFoundException
349349
}
350350

351351
File libDir = new File(ModuleLoader.getInstance().getModule(SequenceAnalysisModule.NAME).getExplodedPath(), "lib");
352-
File apiLibDir = new File(ModuleLoader.getInstance().getModule("api").getExplodedPath(), "lib");
352+
File coreLibDir = new File(ModuleLoader.getInstance().getModule("core").getExplodedPath(), "lib");
353353
File fastqcDir = new File(libDir.getParentFile(), "external/fastqc");
354354
File bzJar = new File(libDir, "bzip2-0.9.1.jar");
355355
if (!bzJar.exists())
@@ -359,7 +359,7 @@ private List<String> getBaseParams() throws FileNotFoundException
359359
if (!samJar.exists())
360360
throw new RuntimeException("Not found: " + samJar.getPath());
361361

362-
File commonsMath = new File(apiLibDir, "commons-math3-3.6.1.jar");
362+
File commonsMath = new File(coreLibDir, "commons-math3-3.6.1.jar");
363363
if (!commonsMath.exists())
364364
{
365365
throw new RuntimeException("Not found: " + commonsMath.getPath());

0 commit comments

Comments
 (0)