From 726b50c04415b42fff4f307ed2223817f6d6227b Mon Sep 17 00:00:00 2001 From: Tom Sellman Date: Tue, 29 Oct 2024 16:46:56 +0100 Subject: [PATCH] Add tiff library https://ngageoint.github.io/tiff-java/ --- .gitignore | 5 +- dependency-reduced-pom.xml | 45 +++++++++++ pom.xml | 76 ++++++++++--------- .../java/nf_core/nf/test/tiff/Methods.java | 4 +- 4 files changed, 94 insertions(+), 36 deletions(-) create mode 100644 dependency-reduced-pom.xml diff --git a/.gitignore b/.gitignore index 0a687d3..198b5f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # Compiled class file *.class +# intellij files +.idea/ + # Log file *.log @@ -26,4 +29,4 @@ hs_err_pid* /.project /.settings/ /.nextflow/ -/.nf-test/ \ No newline at end of file +/.nf-test/ diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml new file mode 100644 index 0000000..9cc954d --- /dev/null +++ b/dependency-reduced-pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + com.nf-core + nft-tiff + nft-tiff + 0.1.0 + An nf-test plugin to test nft-tiff files + https://github.com/nf-core/nft-tiff + + + MIT License + http://www.opensource.org/licenses/mit + + + + scm:git:https://github.com/nf-core/nft-tiff + scm:git:ssh://github.com:nf-core/nft-tiff.git + https://github.com/nf-core/nft-tiff/tree/master + + + + + maven-shade-plugin + 3.5.2 + + + package + + shade + + + + + + + + ${java.version} + 11 + ${java.version} + ${java.version} + UTF-8 + -Xdoclint:none + + diff --git a/pom.xml b/pom.xml index 30a2fd8..f19db79 100644 --- a/pom.xml +++ b/pom.xml @@ -1,38 +1,46 @@ - 4.0.0 - - com.nf-core - nft-tiff - 0.1.0 - jar - - nft-tiff - An nf-test plugin to test nft-tiff files - https://github.com/nf-core/nft-tiff - - - - MIT License - http://www.opensource.org/licenses/mit - - - - - https://github.com/nf-core/nft-tiff/tree/master - scm:git:https://github.com/nf-core/nft-tiff - scm:git:ssh://github.com:nf-core/nft-tiff.git - - - - UTF-8 - 11 - ${java.version} - ${java.version} - ${java.version} - -Xdoclint:none - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + com.nf-core + nft-tiff + 0.1.0 + jar + + nft-tiff + An nf-test plugin to test nft-tiff files + https://github.com/nf-core/nft-tiff + + + + MIT License + http://www.opensource.org/licenses/mit + + + + + https://github.com/nf-core/nft-tiff/tree/master + scm:git:https://github.com/nf-core/nft-tiff + scm:git:ssh://github.com:nf-core/nft-tiff.git + + + + UTF-8 + 11 + ${java.version} + ${java.version} + ${java.version} + -Xdoclint:none + + + + + mil.nga + tiff + 3.0.0 + + diff --git a/src/main/java/nf_core/nf/test/tiff/Methods.java b/src/main/java/nf_core/nf/test/tiff/Methods.java index 096655c..92d77f7 100644 --- a/src/main/java/nf_core/nf/test/tiff/Methods.java +++ b/src/main/java/nf_core/nf/test/tiff/Methods.java @@ -1,15 +1,17 @@ package nf_core.nf.test.tiff; +import mil.nga.tiff.TIFFImage; + /* * Add your custom methods to nf-test * * @author: nf-core */ - public class Methods { public static void hello() { System.out.println("Hello from nft-tiff"); + TIFFImage img = new TIFFImage(); } } \ No newline at end of file