@@ -31,11 +31,45 @@ lazy val baseSettings = Seq(
3131 scalacOptions ++= compilerOptions
3232)
3333
34- lazy val allSettings = buildSettings ++ baseSettings
34+ lazy val publishSettings = Seq (
35+ publishMavenStyle := true ,
36+ publishArtifact := true ,
37+ publishTo := {
38+ val nexus = " https://oss.sonatype.org/"
39+ if (isSnapshot.value) Some (" snapshots" at nexus + " content/repositories/snapshots" )
40+ else Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
41+ },
42+ publishArtifact in Test := false ,
43+ pomIncludeRepository := { _ => false },
44+ licenses := Seq (" Apache 2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" )),
45+ homepage := Some (url(" https://github.com/BenFradet/struct-type-encoder" )),
46+ scmInfo := Some (
47+ ScmInfo (
48+ url(" https://github.com/BenFradet/struct-type-encoder" ),
49+ " scm:git:git@github.com:BenFradet/struct-type-encoder.git"
50+ )
51+ ),
52+ pomExtra :=
53+ <developers >
54+ <developer >
55+ <id >BenFradet </id >
56+ <name >Ben Fradet </name >
57+ <url >https:// benfradet.github.io/</ url>
58+ </developer >
59+ </developers >
60+ )
61+
62+ lazy val noPublishSettings = Seq (
63+ publish := {},
64+ publishLocal := {},
65+ publishArtifact := false
66+ )
67+
68+ lazy val allSettings = buildSettings ++ baseSettings ++ publishSettings
3569
3670lazy val structTypeEncoder = (project in file(" ." ))
37- .settings(moduleName := " struct-type-encoder" )
3871 .settings(allSettings)
72+ .settings(noPublishSettings)
3973 .settings(
4074 initialCommands in console :=
4175 """
@@ -47,13 +81,14 @@ lazy val structTypeEncoder = (project in file("."))
4781 .dependsOn(core)
4882
4983lazy val core = project
50- .settings(moduleName := " struct-type-encoder-core " )
84+ .settings(moduleName := " struct-type-encoder" )
5185 .settings(allSettings)
5286
5387lazy val benchmarks = project
5488 .settings(moduleName := " struct-type-encoder-benchmarks" )
5589 .enablePlugins(JmhPlugin )
5690 .settings(allSettings)
91+ .settings(noPublishSettings)
5792 .settings(
5893 javaOptions in run ++= Seq (
5994 " -Djava.net.preferIPv4Stack=true" ,
0 commit comments