This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
/
build.sbt
86 lines (81 loc) · 2.62 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
import com.typesafe.sbt.packager.SettingsHelper.{
addPackage,
makeDeploymentSettings
}
lazy val root = project
.in(file("."))
.enablePlugins(UniversalPlugin, JavaServerAppPackaging, UniversalDeployPlugin)
.settings(
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials"),
organization := "org.mixql",
name := "mixql-engine-stub",
version := "0.1.0",
organizationHomepage := Some(url("https://mixql.org/")),
description := "MixQL stub engine.",
scalaVersion := "3.2.1",
resolvers ++=
Seq(
"Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/releases"
),
libraryDependencies ++= {
val vScallop = "4.1.0"
Seq(
"org.rogach" %% "scallop" % vScallop,
"com.typesafe" % "config" % "1.4.2",
"org.mixql" %% "mixql-engine" % "0.1.0",
"org.scalameta" %% "munit" % "0.7.29" % Test
)
},
licenses := List(
"Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")
),
homepage := Some(url("https://github.com/mixql/mixql-engine-stub")),
pomIncludeRepository := { _ => false },
publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
Universal / mappings += file("README.md") -> "README.md",
scmInfo := Some(
ScmInfo(
url("https://github.com/mixql/mixql-engine-stub"),
"scm:git@github.com:mixql/mixql-engine-stub.git"
)
),
developers := List(
Developer(
"LavrVV",
"MixQL team",
"lavr3x@rambler.ru",
url("https://github.com/LavrVV")
),
Developer(
"wiikviz",
"Kostya Kviz",
"kviz@outlook.com",
url("https://github.com/wiikviz")
),
Developer(
"mihan1235",
"MixQL team",
"mihan1235@yandex.ru",
url("https://github.com/mihan1235")
),
Developer(
"ntlegion",
"MixQL team",
"ntlegion@outlook.com",
url("https://github.com/ntlegion")
)
)
)
// zip
makeDeploymentSettings(Universal, packageBin in Universal, "zip")
makeDeploymentSettings(UniversalDocs, packageBin in UniversalDocs, "zip")
// additional tgz
addPackage(Universal, packageZipTarball in Universal, "tgz")
// additional txz
addPackage(UniversalDocs, packageXzTarball in UniversalDocs, "txz")