diff --git a/project/Publish.scala b/project/Publish.scala deleted file mode 100644 index f7700e6..0000000 --- a/project/Publish.scala +++ /dev/null @@ -1,46 +0,0 @@ -import sbt.Keys._ -//import com.typesafe.sbt.SbtPgp.autoImportImpl.useGpg -import sbt.{ AutoPlugin, Credentials, Path, PluginTrigger, _ } - -object Publish extends AutoPlugin { - - override def trigger: PluginTrigger = allRequirements - - override def projectSettings: Seq[_root_.sbt.Def.Setting[_]] = Seq( - // useGpg := false, - publishMavenStyle := true, - pomAllRepositories := false, - pomIncludeRepository := { (repo: MavenRepository) ⇒ - lazy val port = new URL(repo.root).getPort - !repo.root.startsWith("file:") && Seq(-1, 80, 443).contains(port) - }, - credentials += Credentials(Path.userHome / ".sbt" / ".credentials"), - publishTo := { - val nexus = "https://oss.sonatype.org/" - if (isSnapshot.value) { - Some("snapshots" at nexus + "content/repositories/snapshots") - } else { - Some("releases" at nexus + "service/local/staging/deploy/maven2") - } - }, - pomExtra := - https://github.com/aiyanbo/sbt-dependency-updates - - - Apache License - https://www.apache.org/licenses/ - repo - - - - git@github.com/aiyanbo/sbt-dependency-updates.git - scm:git:git@github.com/aiyanbo/sbt-dependency-updates.git - - - - yanbo.ai - Andy Ai - https://aiyanbo.github.io/ - - ) -}