~/.sbt/1.0/otherRepository.sbt
val otherRepo = "Repo name" at "https://other.repo.example.com"
Global / publishTo := Some(otherRepo) // (1)
credentials += Credentials(
"Repo realm",
"other.repo.example.com",
"user",
"password"
)
resolvers += otherRepo
-
Do not forget to put
Global /
otherwise you won’t be able to push to Sonatype in case ofGatlingOssPlugin
usage.
As this file lie in your global SBT configuration, there is no mean to commit it by mistake.
~/.sbt/1.0/plugins/gpg.sbt
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.2")
~/.sbt/1.0/gpg.sbt
credentials += Credentials( "GPG sign key", // (1) "pgp", // (2) "5470DFCDA4CB06EE1890118B28BE55DFA0E95B3D", // (3) "ignored" // (4) ) useGpgPinentry := true useGpgAgent := false
-
Must be unique
-
Must be
pgp
-
The key id to use
-
The passphrase will lie in
PGP_PASSPHRASE
environment variable.
For more information, see sbt-pgp.
IntelliJ doesn’t derive sbt-test projects as SBT projects. Add each module as a project:
-
File / New / Module from Existing Sources
Then, IntelliJ doesn’t reach plugin.version
property, go to the SBT tab on the right:
-
Click on "sbt Settings" (wrench)
-
Set VM parameters to
-Dplugin.version=X.Y.Z-SNAPSHOT
whereX.Y.Z-SNAPSHOT
is the version in rootversion.sbt
-
Reload