-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
62 lines (53 loc) · 1.88 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
// https://typelevel.org/sbt-typelevel/faq.html#what-is-a-base-version-anyway
ThisBuild / tlBaseVersion := "0.0" // your current series x.y
ThisBuild / organization := "pink.cozydev"
ThisBuild / organizationName := "CozyDev"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("samspills", "Sam Pillsworth")
)
// publish to s01.oss.sonatype.org (set to true to publish to oss.sonatype.org instead)
ThisBuild / tlSonatypeUseLegacyHost := false
// publish website from this branch
ThisBuild / tlSitePublishBranch := Some("main")
val Scala213 = "2.13.15"
ThisBuild / crossScalaVersions := Seq(Scala213, "3.3.4")
ThisBuild / scalaVersion := Scala213 // the default Scala
lazy val root = tlCrossRootProject.aggregate(core)
lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.in(file("core"))
.settings(
name := "snakecase",
scalacOptions := scalacOptions.value
.filterNot(_ == "-source:3.0-migration"),
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.10.0",
"org.typelevel" %%% "cats-parse" % "1.0.0",
"org.typelevel" %%% "literally" % "1.1.0",
"org.scalameta" %%% "munit" % "1.0.0-M10" % Test
)
)
import laika.helium.config.{IconLink, HeliumIcon}
lazy val docs = project
.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(core.jvm)
.settings(
tlFatalWarnings := false,
tlSiteRelatedProjects := Seq(
"literally" -> url("https://github.com/typelevel/literally")
),
tlSiteHelium := {
tlSiteHelium.value.site.darkMode.disabled.site
.resetDefaults(topNavigation = true)
.site
.topNavigationBar(
homeLink = IconLink.external(
"https://github.com/cozydev-pink/snakecase",
HeliumIcon.github
)
)
}
)