未验证 提交 e9833fc7 编写于 作者: 梦境迷离's avatar 梦境迷离 提交者: GitHub

cross build release (#4)

* Update build.sbt

* Update ScalaCI.yml

* Update ScalaCI.yml

* Update ScalaCI.yml

* update readme

* update readme

* Setting version to 0.0.2

* update readme

* Setting version to 0.0.3-SNAPSHOT
上级 24f86236
......@@ -4,6 +4,10 @@
/target/
/target/scala-2.13/classes/
/target/scala-2.13/test-classes/
/target/scala-2.12/classes/
/target/scala-2.12/test-classes/
/target/scala-2.11/classes/
/target/scala-2.11/test-classes/
.idea/
*.iml
.bsp
......
......@@ -45,6 +45,8 @@ The artefacts have been uploaded to Maven Central.
| Library Version | Scala 2.11 | Scala 2.12 | Scala 2.13 |
|---------|------------|------------|------------|
|0.0.1|-|-|[![Maven Central](https://img.shields.io/maven-central/v/io.github.jxnu-liguobin/scala-macro-tools_2.13.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.jxnu-liguobin%22%20AND%20a:%22scala-macro-tools_2.13%22)|
|0.0.2|[![Maven Central](https://img.shields.io/maven-central/v/io.github.jxnu-liguobin/scala-macro-tools_2.11.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.jxnu-liguobin%22%20AND%20a:%22scala-macro-tools_2.11%22)|[![Maven Central](https://img.shields.io/maven-central/v/io.github.jxnu-liguobin/scala-macro-tools_2.12.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.jxnu-liguobin%22%20AND%20a:%22scala-macro-tools_2.12%22)|[![Maven Central](https://img.shields.io/maven-central/v/io.github.jxnu-liguobin/scala-macro-tools_2.13.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.jxnu-liguobin%22%20AND%20a:%22scala-macro-tools_2.13%22)|
Importing the library into your build system (e.g gradle, sbt), is not enough. You need to follow an extra step.
......
version in ThisBuild := "0.0.2-SNAPSHOT"
version in ThisBuild := "0.0.3-SNAPSHOT"
......@@ -28,32 +28,32 @@ lazy val root = (project in file("."))
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("^ compile"),
releaseStepCommandAndRemaining("+compile"),
releaseStepCommandAndRemaining("test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^ publishSigned"),
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
pushChanges
)
).settings(Publishing.publishSettings).settings(
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) => getParadise(n)
case _ => None
}).fold(Seq.empty[ModuleID])(f => Seq(compilerPlugin(f)))
)
).settings(Publishing.publishSettings)
lazy val `examples213` = (project in file("examples213")).settings(scalaVersion := scala213)
.settings(libraryDependencies ++= Seq(
"io.github.jxnu-liguobin" %% "scala-macro-tools" % (version in ThisBuild).value,
)).settings(Compile / scalacOptions += "-Ymacro-annotations")
)).settings(
publish / skip := true,
Compile / scalacOptions += "-Ymacro-annotations"
)
lazy val `examples212` = (project in file("examples212")).settings(scalaVersion := scala212)
.settings(libraryDependencies ++= Seq(
"io.github.jxnu-liguobin" %% "scala-macro-tools" % (version in ThisBuild).value,
)).settings(
publish / skip := true,
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) => getParadise(n)
case _ => None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册