mirror of https://github.com/sbt/sbt.git
Have publishSigned publish artifacts with shading
1.0.0-M15-3 -> 🗑️
This commit is contained in:
parent
991b60ddbc
commit
9eff5f3402
22
build.sbt
22
build.sbt
|
|
@ -1,4 +1,5 @@
|
||||||
import java.io.FileOutputStream
|
import java.io.FileOutputStream
|
||||||
|
import com.typesafe.sbt.pgp.PgpSettings
|
||||||
|
|
||||||
val binaryCompatibilityVersion = "1.0.0-M14"
|
val binaryCompatibilityVersion = "1.0.0-M14"
|
||||||
val binaryCompatibility212Version = "1.0.0-M15"
|
val binaryCompatibility212Version = "1.0.0-M15"
|
||||||
|
|
@ -16,10 +17,8 @@ lazy val core = crossProject
|
||||||
.enablePlugins(_root_.coursier.ShadingPlugin)
|
.enablePlugins(_root_.coursier.ShadingPlugin)
|
||||||
)
|
)
|
||||||
.jvmSettings(
|
.jvmSettings(
|
||||||
shadingNamespace := "coursier.shaded",
|
|
||||||
libraryDependencies += "com.lihaoyi" %% "fastparse" % "0.4.2" % "shaded",
|
libraryDependencies += "com.lihaoyi" %% "fastparse" % "0.4.2" % "shaded",
|
||||||
publish := publish.in(Shading).value,
|
shadingSettings
|
||||||
publishLocal := publishLocal.in(Shading).value
|
|
||||||
)
|
)
|
||||||
.jsSettings(
|
.jsSettings(
|
||||||
libraryDependencies += "com.lihaoyi" %%% "fastparse" % "0.4.2"
|
libraryDependencies += "com.lihaoyi" %%% "fastparse" % "0.4.2"
|
||||||
|
|
@ -391,7 +390,6 @@ lazy val `sbt-shading` = project
|
||||||
.dependsOn(`sbt-coursier`)
|
.dependsOn(`sbt-coursier`)
|
||||||
.settings(pluginSettings)
|
.settings(pluginSettings)
|
||||||
.settings(
|
.settings(
|
||||||
shadingNamespace := "coursier.shaded",
|
|
||||||
resolvers += Resolver.mavenLocal,
|
resolvers += Resolver.mavenLocal,
|
||||||
libraryDependencies += {
|
libraryDependencies += {
|
||||||
val coursierJarjarVersion = "1.0.1-coursier-SNAPSHOT"
|
val coursierJarjarVersion = "1.0.1-coursier-SNAPSHOT"
|
||||||
|
|
@ -416,8 +414,7 @@ lazy val `sbt-shading` = project
|
||||||
|
|
||||||
"org.anarres.jarjar" % "jarjar-core" % jarjarVersion % "shaded"
|
"org.anarres.jarjar" % "jarjar-core" % jarjarVersion % "shaded"
|
||||||
},
|
},
|
||||||
publish := publish.in(Shading).value,
|
shadingSettings
|
||||||
publishLocal := publishLocal.in(Shading).value
|
|
||||||
)
|
)
|
||||||
|
|
||||||
lazy val `sbt-launcher` = project
|
lazy val `sbt-launcher` = project
|
||||||
|
|
@ -658,3 +655,16 @@ lazy val mimaPreviousArtifactSettings = Seq(
|
||||||
Set(organization.value %% moduleName.value % version)
|
Set(organization.value %% moduleName.value % version)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
lazy val shadingSettings =
|
||||||
|
inConfig(Shading)(PgpSettings.projectSettings) ++
|
||||||
|
// ytf does this have to be repeated here?
|
||||||
|
// Can't figure out why configuration get lost without this in particular...
|
||||||
|
_root_.coursier.ShadingPlugin.projectSettings ++
|
||||||
|
Seq(
|
||||||
|
shadingNamespace := "coursier.shaded",
|
||||||
|
publish := publish.in(Shading).value,
|
||||||
|
publishLocal := publishLocal.in(Shading).value,
|
||||||
|
PgpKeys.publishSigned := PgpKeys.publishSigned.in(Shading).value,
|
||||||
|
PgpKeys.publishLocalSigned := PgpKeys.publishLocalSigned.in(Shading).value
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue