-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (29 loc) · 1012 Bytes
/
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
version := "0.1.1"
organization := "me.yceel"
val publishSettings = Seq(
publishTo := Some(Resolver.url("Github Package Registry", url("https://maven.pkg.github.com/reminia/sbt-curl"))(Resolver.ivyStylePatterns)),
publishMavenStyle := false,
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
System.getenv("GITHUB_REPOSITORY_OWNER"),
System.getenv("GITHUB_TOKEN")
),
Test / packageDoc / publishArtifact := false,
Test / packageSrc / publishArtifact := false,
Test / packageBin / publishArtifact := false,
Compile / packageDoc / publishArtifact := false
)
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-curl",
description := "sbt plugin for running curl commands",
sbtPlugin := true,
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Dplugin.version=" + version.value),
scriptedBufferLog := false,
Test / test := {
scripted.toTask("").value
}
)
.settings(publishSettings *)