-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
30 lines (29 loc) · 1.4 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
inThisBuild(
List(
organization := "com.yurique",
homepage := Some(url("https://github.com/yurique/embedded-files")),
licenses += ("MIT", url("https://github.com/yurique/embedded-files/LICENSE")),
developers := List(Developer("yurique", "Iurii Malchenko", "i@yurique.com", url("https://github.com/yurique"))),
description := "An sbt plugin that generates Scala objects embedding the contents of files.",
scmInfo := Some(ScmInfo(url("https://github.com/yurique/embedded-files"), "scm:git@github.com/yurique/embedded-files.git")),
githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("scripted"))),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
githubWorkflowPublish := Seq(WorkflowStep.Sbt(List("ci-release"))),
githubWorkflowEnv ~= (_ ++ Map(
"PGP_PASSPHRASE" -> s"$${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> s"$${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> s"$${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> s"$${{ secrets.SONATYPE_USERNAME }}"
)),
scalaVersion := "2.12.15"
)
)
name := "sbt-embedded-files"
sbtPlugin := true
publishMavenStyle := true
console / initialCommands := """import com.yurique.embedded.sbt._"""
enablePlugins(ScriptedPlugin)
scriptedLaunchOpts ++=
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
// test := scripted.value