-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
60 lines (53 loc) · 2.02 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
Global / excludeLintKeys += ideBasePackages
inThisBuild(Seq(
organization := "com.github.ghik",
homepage := Some(url("https://github.com/ghik/sbt-nosbt")),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17")),
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
githubWorkflowPublish := Seq(WorkflowStep.Sbt(
List("ci-release"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
)
)),
))
lazy val root = project.in(file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-nosbt",
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" => "1.8.0"
}
},
ideBasePackages := Seq(s"${organization.value}.${name.value}"),
libraryDependencies ++= Seq(
"com.avsystem.commons" %% "commons-core" % "2.9.0",
),
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
publishTo := sonatypePublishToBundle.value,
projectInfo := ModuleInfo(
nameFormal = "PlainSBT",
description = "SBT plugin for organizing your build into plain Scala files",
homepage = Some(url("https://github.com/ghik/sbt-nosbt")),
startYear = Some(2023),
licenses = Vector(
"Apache License, Version 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")
),
organizationName = "ghik",
organizationHomepage = Some(url("https://github.com/ghik")),
scmInfo = Some(ScmInfo(
browseUrl = url("https://github.com/ghik/sbt-nosbt.git"),
connection = "scm:git:[email protected]:ghik/sbt-nosbt.git",
devConnection = Some("scm:git:[email protected]:ghik/sbt-nosbt.git")
)),
developers = Vector(
Developer("ghik", "Roman Janusz", "[email protected]", url("https://github.com/ghik"))
),
),
)