-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
29 lines (20 loc) · 790 Bytes
/
build.sbt
File metadata and controls
29 lines (20 loc) · 790 Bytes
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
import com.gilcloud.sbt.gitlab.{GitlabCredentials,GitlabPlugin}
organization := "com.agilogy"
name := "groupable"
version := "1.2"
crossScalaVersions := Seq("2.11.12","2.12.13")
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
// --> gitlab
GitlabPlugin.autoImport.gitlabGroupId := None
GitlabPlugin.autoImport.gitlabProjectId := Some(26236490)
GitlabPlugin.autoImport.gitlabDomain := "gitlab.com"
GitlabPlugin.autoImport.gitlabCredentials := {
val token = sys.env.get("GITLAB_DEPLOY_TOKEN") match {
case Some(token) => token
case None =>
sLog.value.warn(s"Environment variable GITLAB_DEPLOY_TOKEN is undefined, 'publish' will fail.")
""
}
Some(GitlabCredentials("Deploy-Token", token))
}
// <-- gitlab