Skip to content

Commit

Permalink
Prepared release 0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Sep 20, 2022
1 parent c6f0524 commit 3a57451
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
19 changes: 12 additions & 7 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ import mill._, scalalib._, publish._
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.2.0`
import de.tobiasroeser.mill.vcs.version.VcsVersion

object Deps {
def scalaCompiler(scalaVersion: String) = ivy"org.scala-lang:scala-compiler:${scalaVersion}"
val utest = ivy"com.lihaoyi::utest:0.8.0"
}

object acyclic extends Cross[AcyclicModule](
"2.11.12",
"2.12.8", "2.12.9", "2.12.10", "2.12.11", "2.12.12", "2.12.13", "2.12.14", "2.12.15", "2.12.16", "2.12.17",
"2.13.0", "2.13.1", "2.13.2", "2.13.3", "2.13.4", "2.13.5", "2.13.6", "2.13.7", "2.13.8", "2.13.9"
)
class AcyclicModule(val crossScalaVersion: String) extends CrossScalaModule with PublishModule {
def crossFullScalaVersion = true
def artifactName = "acyclic"
override def crossFullScalaVersion = true
override def artifactName = "acyclic"
def publishVersion = VcsVersion.vcsState().format()

def pomSettings = PomSettings(
Expand All @@ -22,13 +27,13 @@ class AcyclicModule(val crossScalaVersion: String) extends CrossScalaModule with
Developer("lihaoyi", "Li Haoyi", "https://github.com/lihaoyi")
)
)
def compileIvyDeps = Agg(ivy"org.scala-lang:scala-compiler:$crossScalaVersion")
override def compileIvyDeps = Agg(Deps.scalaCompiler(crossScalaVersion))

object test extends Tests with TestModule.Utest {
def sources = T.sources(millSourcePath / "src", millSourcePath / "resources")
def ivyDeps = Agg(
ivy"com.lihaoyi::utest:0.8.0",
ivy"org.scala-lang:scala-compiler:$crossScalaVersion"
override def sources = T.sources(millSourcePath / "src", millSourcePath / "resources")
override def ivyDeps = Agg(
Deps.utest,
Deps.scalaCompiler(crossScalaVersion)
)
}
}
10 changes: 6 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,20 +177,20 @@ How to Use
To use, add the following to your `build.sbt`:

```scala
libraryDependencies += "com.lihaoyi" %% "acyclic" % "0.3.4" cross (CrossVersion.full) % "provided"
libraryDependencies += "com.lihaoyi" %% "acyclic" % "0.3.5" cross (CrossVersion.full) % "provided"

autoCompilerPlugins := true

addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.3.4")
addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.3.5")
```

## Mill

For Mill, use the following:

```scala
def compileIvyDeps = Agg(ivy"com.lihaoyi:::acyclic:0.3.4")
def scalacPluginIvyDeps = Agg(ivy"com.lihaoyi:::acyclic:0.3.4")
def compileIvyDeps = Agg(ivy"com.lihaoyi:::acyclic:0.3.5")
def scalacPluginIvyDeps = Agg(ivy"com.lihaoyi:::acyclic:0.3.5")
```

**Acyclic** is currently being used in [uTest](https://github.com/lihaoyi/utest), [Scalatags](https://github.com/lihaoyi/scalatags) and [Scala.Rx](https://github.com/lihaoyi/scala.rx), and helped remove many cycle between files which had no good reason for being cyclic. It is also being used to verify the acyclicity of [its own code](https://github.com/lihaoyi/acyclic/blob/master/acyclic/src/acyclic/plugin/PluginPhase.scala). It works with Scala 2.11, 2.12 and 2.13.
Expand Down Expand Up @@ -244,6 +244,8 @@ Acyclic has problems in a number of cases:
ChangeLog
=========

**0.3.5**: Added support for Scala 2.13.9

**0.3.4**: Added support for Scala 2.12.17

**0.3.3**: Added support for Scala 2.12.16
Expand Down

0 comments on commit 3a57451

Please sign in to comment.