-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
74 lines (62 loc) · 2.18 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
71
72
73
74
import sbtcrossproject.CrossPlugin.autoImport.crossProject
import sbtcrossproject.CrossType
// Scala versions
val scala213 = "2.13.14"
val scala3 = List("3.3.3")
val scala2 = List(scala213)
val allScalaVersions = scala2 ::: scala3
ThisBuild / organization := "com.outr"
ThisBuild / version := "3.4.16"
ThisBuild / scalaVersion := scala213
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / publishConfiguration := publishConfiguration.value.withOverwrite(true)
ThisBuild / sonatypeProfileName := "com.outr"
ThisBuild / licenses := Seq("MIT" -> url("https://github.com/outr/profig/blob/master/LICENSE"))
ThisBuild / sonatypeProjectHosting := Some(xerial.sbt.Sonatype.GitHubHosting("outr", "profig", "matt@outr.com"))
ThisBuild / homepage := Some(url("https://github.com/outr/profig"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/outr/profig"),
"scm:git@github.com:outr/profig.git"
)
)
ThisBuild / developers := List(
Developer(id="darkfrog", name="Matt Hicks", email="matt@matthicks.com", url=url("https://matthicks.com"))
)
val fabric: String = "1.15.4"
val collectionCompat: String = "2.12.0"
val scalaTest: String = "3.2.19"
lazy val root = project.in(file("."))
.aggregate(coreJS, coreJVM)
.settings(
name := "profig",
publish := {},
publishLocal := {}
)
lazy val core = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("core"))
.settings(
name := "profig",
libraryDependencies ++= Seq(
"org.typelevel" %%% "fabric-io" % fabric,
"org.scala-lang.modules" %%% "scala-collection-compat" % collectionCompat,
"org.scalatest" %% "scalatest" % scalaTest % "test"
),
crossScalaVersions := allScalaVersions
)
lazy val coreJS = core.js
lazy val coreJVM = core.jvm
lazy val docs = project
.in(file("documentation"))
.dependsOn(core.jvm)
.enablePlugins(MdocPlugin)
.settings(
mdocVariables := Map(
"VERSION" -> version.value
),
mdocOut := file(".")
)