-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
79 lines (71 loc) · 1.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
import Dependencies._
val mainScala = "2.13.1"
lazy val root = (project in file("."))
.settings(
List(
name := "youtubegrabber",
organization := "ru.shubert",
description := "Youtube video grabber",
scalaVersion := mainScala,
crossScalaVersions := Seq("2.11.8", "2.12.11", mainScala),
isSnapshot := false
),
libraryDependencies ++= Seq(
apacheHttp,
jsonParser1,
jsonParser2,
cats,
catsEffect,
scalaParallel,
logging,
logback,
scalaTest,
)
)
.settings(assemblySetting)
.settings(publishSettings)
lazy val assemblySetting = Seq(
test in assembly := {},
mainClass in assembly := Some("Main"),
assemblyOutputPath in assembly :=
file(baseDirectory.value.getAbsolutePath + s"/docker/grabber.jar")
// file(baseDirectory.value.getAbsolutePath + s"/docker/grabber-${version.value}.jar")
)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
homepage := Some(url("https://github.com/lure/YoutubeGrabber")),
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
scmInfo := Some(ScmInfo(url("https://github.com/lure/YoutubeGrabber"), "scm:git:[email protected]:lure/YoutubeGrabber.git")),
organization := "ru.shubert",
developers := List(
Developer(
id = "lure",
name = "Alexandr Shubert",
email = "[email protected]",
url = url("https://github.com/lure")
)
),
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
)
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)