提交 86f39acc 编写于 作者: 梦境迷离's avatar 梦境迷离

pre

上级 6d2eb149
import sbtrelease.ReleaseStateTransformations._
name := "scala-macro-tools"
scalaVersion := "2.13.6"
organization := "io.github.jxnu-liguobin"
......@@ -19,5 +21,19 @@ lazy val core = (project in file("."))
case Some((2, n)) if n <= 12 => Nil
case _ => List("-Ymacro-annotations", "-Ymacro-debug-verbose")
}
}
},
releaseIgnoreUntrackedFiles := true,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("^ scripted"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^ publishSigned"),
setNextVersion,
commitNextVersion,
pushChanges
)
)
import sbt.Keys._
import sbt._
import xerial.sbt.Sonatype.autoImport.sonatypeProfileName
/**
* sbt publish setting
*
* @author 梦境迷离 dreamylost
* @since 2020-07-19
* @version v1.0
*/
object Publishing {
//publish by sbt publishSigned
lazy val publishSettings = Seq(
credentials += Credentials(Path.userHome / ".ivy2" / ".sonatype_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")
},
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT")),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
developers := List(
Developer(
id = "dreamylost",
name = "梦境迷离",
email = "dreamylost@outlook.com",
url = url("https://dreamylost.cn")
)),
sonatypeProfileName := organization.value,
isSnapshot := version.value endsWith "SNAPSHOT",
homepage := Some(url("https://github.com/jxnu-liguobin")),
scmInfo := Some(
ScmInfo(
url("https://github.com/bitlap/scala-macro-tools"),
"scm:git@github.com:bitlap/scala-macro-tools.git"
))
)
}
package io.github.liguobin
package io.github.dreamylost
import scala.annotation.{ StaticAnnotation, compileTimeOnly }
import scala.language.experimental.macros
......
package io.github.liguobin
package io.github.dreamylost
import org.scalatest.{ FlatSpec, Matchers }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册