-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
70 lines (61 loc) · 2.66 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// @formatter:off
import java.net.URL
name := "ijp_imageio"
organization := "net.sf.ij-plugins"
version := "2.3.0.1-SNAPSHOT"
homepage := Some(new URL("https://github.com/ij-plugins/ijp-imageio"))
organizationHomepage := Some(url("https://github.com/ij-plugins"))
startYear := Some(2002)
licenses := Seq(("LGPL-2.1", new URL("https://opensource.org/licenses/LGPL-2.1")))
description := "ijp-ImageIO enable reading and writing images using Java ImageIO codecs. " +
"The core ImageIO formats: JPEG, PNG, BMP, WBMP, and GIF. IJP-ImageIO is also using JAI codes adding support for " +
"TIFF, JPEG200, PNM, and PCX. TIFF supports reading and writing using various compression schemes: LZW, JPEG, ZIP, " +
"and Deflate. For more detailed information see IJP-ImageIO home page: https://github.com/ij-plugins/ijp-imageio/wiki."
libraryDependencies ++= Seq(
"net.imagej" % "ij" % "1.54d",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test->default"
)
// fork a new JVM for 'run' and 'test:run'
fork := true
// add a JVM option to use when forking a JVM for 'run'
javaOptions ++= Seq("-Xmx2G", "-server")
Compile / compile / javacOptions ++= Seq(
"-Xlint",
"--release", "11"
)
Compile / doc / javacOptions ++= Seq(
"-windowtitle", "IJP-ImageIO API v." + version.value,
"-header", "IJP-ImageIO API v." + version.value,
"-sourcepath", (baseDirectory.value / "src/main/java").getAbsolutePath,
"-subpackages", "ij_plugins.imageio",
"-exclude", "ij_plugins.imageio.impl:ij_plugins.imageio.plugins",
"-verbose"
)
//
// Setup sbt-imagej plugins
//
enablePlugins(SbtImageJ)
ijRuntimeSubDir := "sandbox"
ijPluginsSubDir := "ij-plugins"
ijCleanBeforePrepareRun := true
cleanFiles += ijPluginsDir.value
run / baseDirectory := baseDirectory.value / "sandbox"
//
// Customize Java style publishing
//
// Enables publishing to maven repo
publishMavenStyle := true
// This is a Java project, disable using the Scala version in output paths and artifacts
crossPaths := false
// This forbids including Scala related libraries into the dependency
autoScalaLibrary := false
publishTo := sonatypePublishToBundle.value
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("ij-plugins", "ijp-imageio", "[email protected]"))
developers := List(
Developer(id="jpsacha", name="Jarek Sacha", email="[email protected]", url=url("https://github.com/jpsacha"))
)
Test / packageBin / publishArtifact := false
Test / packageDoc / publishArtifact := false
Test / packageSrc / publishArtifact := false