1- // @formatter:off
2- import java .net .URL
3-
41name := " ijp_imageio"
52organization := " net.sf.ij-plugins"
3+ organizationName := " IJ-Plugins"
64version := " 2.3.0.1-SNAPSHOT"
75
8- homepage := Some (new URL (" https://github.com/ij-plugins/ijp-imageio" ))
6+ homepage := Some (url (" https://github.com/ij-plugins/ijp-imageio" ))
97organizationHomepage := Some (url(" https://github.com/ij-plugins" ))
10- startYear := Some (2002 )
11- licenses := Seq (( " LGPL-2.1" , new URL (" https://opensource.org/licenses/LGPL-2.1" ) ))
12- description := " ijp-ImageIO enable reading and writing images using Java ImageIO codecs. " +
8+ startYear := Some (2002 )
9+ licenses := Seq (" LGPL-2.1" -> url (" https://opensource.org/licenses/LGPL-2.1" ))
10+ description := " ijp-ImageIO enable reading and writing images using Java ImageIO codecs. " +
1311 " The core ImageIO formats: JPEG, PNG, BMP, WBMP, and GIF. IJP-ImageIO is also using JAI codes adding support for " +
1412 " TIFF, JPEG200, PNM, and PCX. TIFF supports reading and writing using various compression schemes: LZW, JPEG, ZIP, " +
1513 " and Deflate. For more detailed information see IJP-ImageIO home page: https://github.com/ij-plugins/ijp-imageio/wiki."
1614
1715libraryDependencies ++= Seq (
18- " net.imagej" % " ij" % " 1.54d " ,
19- " junit" % " junit" % " 4.13.2" % " test" ,
20- " com.novocode" % " junit-interface" % " 0.11" % " test->default"
16+ " net.imagej" % " ij" % " 1.54p " ,
17+ " junit" % " junit" % " 4.13.2" % " test" ,
18+ " com.novocode" % " junit-interface" % " 0.11" % " test->default"
2119)
2220
21+ // Set the Java version target for compatibility for the current FIJI distribution
22+ // We do not want to be over the FIJI Java version.
23+ lazy val javaTargetVersion = " 21"
24+
2325// fork a new JVM for 'run' and 'test:run'
2426fork := true
2527
2628// add a JVM option to use when forking a JVM for 'run'
2729javaOptions ++= Seq (" -Xmx2G" , " -server" )
2830Compile / compile / javacOptions ++= Seq (
2931 " -Xlint" ,
30- " --release" , " 11"
32+ " --release" ,
33+ javaTargetVersion
3134)
3235Compile / doc / javacOptions ++= Seq (
33- " -windowtitle" , " IJP-ImageIO API v." + version.value,
34- " -header" , " IJP-ImageIO API v." + version.value,
35- " -sourcepath" , (baseDirectory.value / " src/main/java" ).getAbsolutePath,
36- " -subpackages" , " ij_plugins.imageio" ,
37- " -exclude" , " ij_plugins.imageio.impl:ij_plugins.imageio.plugins" ,
36+ " -windowtitle" ,
37+ " IJP-ImageIO API v." + version.value,
38+ " -header" ,
39+ " IJP-ImageIO API v." + version.value,
40+ " -sourcepath" ,
41+ (baseDirectory.value / " src/main/java" ).getAbsolutePath,
42+ " -subpackages" ,
43+ " ij_plugins.imageio" ,
44+ " -exclude" ,
45+ " ij_plugins.imageio.impl:ij_plugins.imageio.plugins" ,
3846 " -verbose"
3947)
4048
@@ -45,7 +53,7 @@ enablePlugins(SbtImageJ)
4553ijRuntimeSubDir := " sandbox"
4654ijPluginsSubDir := " ij-plugins"
4755ijCleanBeforePrepareRun := true
48- cleanFiles += ijPluginsDir.value
56+ cleanFiles += ijPluginsDir.value
4957
5058run / baseDirectory := baseDirectory.value / " sandbox"
5159
@@ -54,17 +62,21 @@ run / baseDirectory := baseDirectory.value / "sandbox"
5462//
5563// Enables publishing to maven repo
5664publishMavenStyle := true
65+ Test / publishArtifact := false
5766// This is a Java project, disable using the Scala version in output paths and artifacts
58- crossPaths := false
67+ crossPaths := false
5968// This forbids including Scala related libraries into the dependency
60- autoScalaLibrary := false
61- publishTo := sonatypePublishToBundle.value
62- import xerial .sbt .Sonatype ._
63- sonatypeProjectHosting := Some (GitHubHosting (" ij-plugins" , " ijp-imageio" , " jpsacha@gmail.com" ))
69+ autoScalaLibrary := false
70+ ThisBuild / publishTo := {
71+ val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/"
72+ if (isSnapshot.value) Some (" central-snapshots" at centralSnapshots)
73+ else localStaging.value
74+ }
75+
6476developers := List (
65- Developer (id= " jpsacha" , name= " Jarek Sacha" , email= " jpsacha@gmail.com" , url= url(" https://github.com/jpsacha" ))
77+ Developer (id = " jpsacha" , name = " Jarek Sacha" , email = " jpsacha@gmail.com" , url = url(" https://github.com/jpsacha" ))
6678)
6779
68- Test / packageBin / publishArtifact := false
69- Test / packageDoc / publishArtifact := false
70- Test / packageSrc / publishArtifact := false
80+ // Test / packageBin / publishArtifact := false
81+ // Test / packageDoc / publishArtifact := false
82+ // Test / packageSrc / publishArtifact := false
0 commit comments