-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sbt
124 lines (115 loc) · 3.98 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
inThisBuild(
List(
organization := "ba.sake",
homepage := Some(url("https://sake92.github.io/hepek")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scmInfo := Some(
ScmInfo(url("https://github.com/sake92/hepek"), "scm:git:git@github.com:sake92/hepek.git")
),
developers := List(
Developer(
"sake92",
"Sakib Hadžiavdić",
"sakib@sake.ba",
url("https://sake.ba")
)
),
scalaVersion := "3.3.4",
publish / skip := true,
scalacOptions ++= Seq(
"-deprecation",
"-Yretain-trees",
"-Wunused:all",
// "-Ysafe-init"
),
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
)
lazy val hepekComponents = crossProject(JVMPlatform, JSPlatform)
.in(file("hepek-components"))
.settings(
publish / skip := false,
name := "hepek-components",
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "scalatags" % V.scalaTags,
"ba.sake" %%% "tupson" % V.tupson,
)
)
.jvmSettings(
libraryDependencies ++= Seq(
"com.vladsch.flexmark" % "flexmark" % V.flexmark,
"com.vladsch.flexmark" % "flexmark-ext-attributes" % V.flexmark,
"com.vladsch.flexmark" % "flexmark-ext-tables" % V.flexmark,
"com.vladsch.flexmark" % "flexmark-ext-gfm-strikethrough" % V.flexmark,
"org.scalameta" %%% "munit" % V.munit % Test,
"org.jsoup" % "jsoup" % V.jsoup % Test
)
)
.jsSettings()
lazy val hepekSSG = (project in file("hepek"))
.settings(
name := "hepek",
description := "Hepek SSG",
publish / skip := false,
libraryDependencies ++= Seq(
"ba.sake" % "hepek-core" % V.hepekCore,
"org.jsoup" % "jsoup" % V.jsoup,
"com.openhtmltopdf" % "openhtmltopdf-pdfbox" % V.openHtmlToPdf,
"com.openhtmltopdf" % "openhtmltopdf-svg-support" % V.openHtmlToPdf,
"com.openhtmltopdf" % "openhtmltopdf-mathml-support" % V.openHtmlToPdf,
"org.seleniumhq.selenium" % "selenium-java" % V.selenium,
"org.scalameta" %%% "munit" % V.munit % Test
)
)
.dependsOn(hepekComponents.jvm)
// scala3 only !
lazy val hepekPlay2_9 = (project in file("hepek-play-2_9"))
.settings(
name := "hepek-play-2_9",
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % "2.9.0",
"com.typesafe.play" %% "play-filters-helpers" % "2.9.0"
),
publish / skip := false
)
.dependsOn(hepekComponents.jvm)
lazy val hepekPlay3_0 = (project in file("hepek-play-3_0"))
.settings(
name := "hepek-play-3_0",
libraryDependencies ++= Seq(
"org.playframework" %% "play" % "3.0.1",
"org.playframework" %% "play-filters-helpers" % "3.0.1"
),
publish / skip := false
)
.dependsOn(hepekComponents.jvm)
lazy val hepekHttp4s = (project in file("hepek-http4s"))
.settings(
name := "hepek-http4s",
publish / skip := false,
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-core" % "0.23.25"
)
)
.dependsOn(hepekComponents.jvm)
lazy val hepekZIO = (project in file("hepek-zio"))
.settings(
name := "hepek-zio",
publish / skip := false,
libraryDependencies ++= Seq(
"dev.zio" %% "zio-http" % "3.0.0-RC1"
)
)
.dependsOn(hepekComponents.jvm)
lazy val hepekDocs = (project in file("hepek-docs"))
.dependsOn(hepekSSG)
.enablePlugins(HepekPlugin)
lazy val hepekTests = (project in file("hepek-tests"))
.settings(
libraryDependencies ++= Seq(
"org.seleniumhq.selenium" % "selenium-java" % V.selenium % "test",
"org.scalameta" %%% "munit" % V.munit % Test
)
)
.dependsOn(hepekSSG)
.enablePlugins(HepekPlugin)