-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.sbt
45 lines (38 loc) · 1.76 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
ThisBuild / organization := "no.arktekk.sbt"
ThisBuild / description := "Deploy in SBT using Sonatype Aether"
ThisBuild / javacOptions := Seq("--release", "8")
ThisBuild / scalacOptions := Seq("-deprecation", "-unchecked", "-release", "8")
ThisBuild / scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + (ThisBuild / version).value)
}
ThisBuild / scriptedBufferLog := false
lazy val aetherDeploy = (project in file("aether-deploy"))
.enablePlugins(SbtPlugin)
.settings(
name := "aether-deploy",
libraryDependencies ++= {
val mavenVersion = "3.9.5"
val mavenResolverVersion = "1.9.16"
Seq(
"org.apache.maven" % "maven-resolver-provider" % mavenVersion,
"org.apache.maven.resolver" % "maven-resolver-api" % mavenResolverVersion,
"org.apache.maven.resolver" % "maven-resolver-impl" % mavenResolverVersion,
"org.apache.maven.resolver" % "maven-resolver-transport-file" % mavenResolverVersion,
"org.apache.maven.resolver" % "maven-resolver-connector-basic" % mavenResolverVersion,
"org.apache.maven.resolver" % "maven-resolver-transport-http" % mavenResolverVersion,
"org.apache.maven.resolver" % "maven-resolver-transport-file" % mavenResolverVersion,
"commons-logging" % "commons-logging" % "1.2"
)
}
)
lazy val aetherDeploySigned = (project in file("aether-deploy-signed"))
.enablePlugins(SbtPlugin)
.dependsOn(aetherDeploy)
.settings(
name := "aether-deploy-signed",
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
)
lazy val aetherDeployRoot = (project in file("."))
.aggregate(aetherDeploy, aetherDeploySigned)
.settings(publish / skip := true)