Skip to content

Commit 7335dba

Browse files
committed
Tweak publish settings
1 parent 09c525e commit 7335dba

File tree

1 file changed

+20
-27
lines changed

1 file changed

+20
-27
lines changed

build.sbt

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,23 @@ val commonSettings = Seq(
2828
if (priorTo213(scalaVersion.value)) Seq(compilerPlugin(("org.scalamacros" %% "paradise" % "2.1.1").cross(CrossVersion.full)))
2929
else Nil
3030
),
31-
scalacOptions ++= (if (priorTo213(scalaVersion.value)) Nil else Seq("-Ymacro-annotations"))
31+
scalacOptions ++= (if (priorTo213(scalaVersion.value)) Nil else Seq("-Ymacro-annotations")),
32+
organization := "com.azavea.geotrellis",
33+
organizationName := "GeoTrellis",
34+
organizationHomepage := Some(url("https://geotrellis.io/")),
35+
homepage := Some(url("https://github.com/geotrellis/maml")),
36+
description := "MAML is used to create a declarative structure that describes a combination of map algebra operations.",
37+
Test / publishArtifact := false,
38+
sonatypeProfileName := "com.azavea",
39+
developers := List(
40+
Developer("moradology", "Nathan Zimmerman", "[email protected]", url("https://github.com/moradology")),
41+
Developer("echeipesh", "Eugene Cheipesh", "[email protected]", url("https://github.com/echeipesh")),
42+
Developer("lossyrob", "Rob Emanuele", "[email protected]", url("https://github.com/lossyrob"))
43+
),
44+
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
3245
)
3346

34-
val java17Settings = Seq(
47+
val java17SparkSettings = Seq(
3548
// JDK17+ https://github.com/apache/spark/blob/v3.5.1/pom.xml#L299-L317
3649
javaOptions ++= {
3750
if (javaMajorVersion >= 17)
@@ -61,39 +74,20 @@ val java17Settings = Seq(
6174

6275
lazy val noPublishSettings = Seq(
6376
publish / skip := true,
64-
publishLocal / skip := true
65-
)
66-
67-
lazy val publishSettings = Seq(
68-
organization := "com.azavea.geotrellis",
69-
organizationName := "GeoTrellis",
70-
organizationHomepage := Some(url("https://geotrellis.io/")),
71-
description := "MAML is used to create a declarative structure that describes a combination of map algebra operations.",
72-
Test / publishArtifact := false
73-
) ++ sonatypeSettings
74-
75-
lazy val sonatypeSettings = Seq(
76-
sonatypeProfileName := "com.azavea",
77-
developers := List(
78-
Developer("moradology", "Nathan Zimmerman", "[email protected]", url("https://github.com/moradology")),
79-
Developer("echeipesh", "Eugene Cheipesh", "[email protected]", url("https://github.com/echeipesh")),
80-
Developer("lossyrob", "Rob Emanuele", "[email protected]", url("https://github.com/lossyrob"))
81-
),
82-
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
77+
publishLocal / skip := true,
78+
publish := {},
79+
publishLocal := {}
8380
)
8481

8582
lazy val root = project
8683
.in(file("."))
87-
.enablePlugins(ScalaJSPlugin)
8884
.aggregate(mamlJs, mamlJvm, mamlSpark)
8985
.settings(commonSettings)
90-
.settings(publishSettings)
91-
.settings(publish / skip := true, publishLocal / skip := true)
86+
.settings(noPublishSettings)
9287

9388
lazy val maml = crossProject(JSPlatform, JVMPlatform)
9489
.in(file("."))
9590
.settings(commonSettings)
96-
.settings(publishSettings)
9791
.settings(
9892
libraryDependencies ++= Seq(
9993
scalacheck % Test,
@@ -127,8 +121,7 @@ lazy val mamlSpark = project
127121
.in(file("spark"))
128122
.dependsOn(mamlJvm)
129123
.settings(commonSettings)
130-
.settings(publishSettings)
131-
.settings(java17Settings)
124+
.settings(java17SparkSettings)
132125
.settings(name := "maml-spark")
133126
.settings(
134127
libraryDependencies ++= Seq(

0 commit comments

Comments
 (0)