|
| 1 | +import sbt.Keys._ |
| 2 | +import sbt.Resolver |
| 3 | +import xerial.sbt.Sonatype.sonatypeCentralHost |
| 4 | + |
1 | 5 | /** Settings shared globally. **/ |
2 | 6 | lazy val commonSettings = Seq( |
3 | | - version := "1.0.0-SNAPSHOT", |
4 | 7 | organization := "org.combinators", |
5 | 8 |
|
6 | 9 | scalaVersion := "3.7.4", |
@@ -28,9 +31,27 @@ lazy val commonSettings = Seq( |
28 | 31 | "org.typelevel" %% "cats-effect" % "3.6.1" |
29 | 32 | ), |
30 | 33 | evictionErrorLevel := Level.Info, |
| 34 | +) ++ publishSettings |
| 35 | + |
| 36 | +lazy val publishSettings = Seq( |
| 37 | + homepage := Some(url("https://combinators.org")), |
| 38 | + licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")), |
| 39 | + scmInfo := Some(ScmInfo(url("https://www.github.com/combinators/expression-problem"), "scm:git:git@github.com:combinators/expression-problem.git")), |
| 40 | + developers := List( |
| 41 | + Developer("JanBessai", "Jan Bessai", "jan.bessai@tu-dortmund.de", url("http://noprotocol.net")), |
| 42 | + Developer("heineman", "George T. Heineman", "heineman@wpi.edu", url("http://www.cs.wpi.edu/~heineman")), |
| 43 | + Developer("BorisDuedder", "Boris Düdder", "boris.d@di.ku.dk", url("http://duedder.net")) |
| 44 | + ), |
| 45 | + publishTo := sonatypePublishToBundle.value, |
| 46 | + ThisBuild / sonatypeCredentialHost := sonatypeCentralHost, |
| 47 | +) ++ sys.env.get("PGP_KEY_HEX").map(h => usePgpKeyHex(h)).seq |
| 48 | + |
| 49 | +lazy val noPublishSettings = Seq( |
| 50 | + publish := Seq.empty, |
| 51 | + publishLocal := Seq.empty, |
| 52 | + publishArtifact := false |
31 | 53 | ) |
32 | 54 |
|
33 | | - |
34 | 55 | /** The code generation infrastructure used in languages. |
35 | 56 | * Things in here are (DI, LI, AI). |
36 | 57 | */ |
|
0 commit comments