Skip to content

Commit 9395672

Browse files
committed
Getting ready for ScalaTest 3.0.6 release.
1 parent 4212a00 commit 9395672

File tree

4 files changed

+49
-12
lines changed

4 files changed

+49
-12
lines changed

3.0.6/README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1-
# scalatestplus-scalafix
1+
# Autofix for ScalaTest 3.0.6
22
Auto-fixing error due to version upgrade, good practice etc.
33

4-
This project took inspiration from:
4+
To use this plugin, please follows these steps:
55

6-
https://github.com/olafurpg/named-literal-arguments
6+
- Add `sbt-scalafix` to your `project/plugins.sbt`:
7+
8+
```
9+
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.4")
10+
```
11+
12+
- Add the following settings in your project:
13+
14+
```
15+
scalafixDependencies in ThisBuild += "org.scalatest" %% "autofix-3.0.6" % "1.0.0",
16+
addCompilerPlugin(scalafixSemanticdb) // enable SemanticDB
17+
```
18+
19+
- In sbt prompt, issue the following command to have the autofix applied:
20+
21+
```
22+
sbt> scalafix RenameDeprecatedPackage
23+
```
24+
25+
- Check the changes made with `git diff`.

3.0.6/build.sbt

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ skip in publish := true
1313

1414
lazy val rules = project.settings(
1515
moduleName := "autofix-3.0.6",
16-
version := "1.0.0",
16+
version := "1.0.0-SNAP1",
17+
crossScalaVersions := List("2.12.8", "2.11.12"),
1718
organization := "org.scalatest",
1819
homepage := Some(url("https://github.com/scalatest/scalatestplus-scalafix")),
1920
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
@@ -22,17 +23,33 @@ lazy val rules = project.settings(
2223
"bvenners",
2324
"Bill Venners",
2425
25-
url("https://www.artima.com")
26+
url("https://github.com/bvenners")
27+
),
28+
Developer(
29+
"cheeseng",
30+
"Chua Chee Seng",
31+
32+
url("https://github.com/cheeseng")
2633
)
2734
),
28-
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion
35+
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion,
36+
publishTo := {
37+
val nexus = "https://oss.sonatype.org/"
38+
Some("publish-releases" at nexus + "service/local/staging/deploy/maven2")
39+
},
40+
publishMavenStyle := true,
41+
publishArtifact in Test := false,
42+
pomIncludeRepository := { _ => false },
43+
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
44+
pgpSecretRing := file((Path.userHome / ".gnupg" / "secring.gpg").getAbsolutePath),
45+
pgpPassphrase := None
2946
)
3047

3148
lazy val input = project.settings(
3249
skip in publish := true,
3350
libraryDependencies ++=
3451
Seq(
35-
"org.scalatest" %% "scalatest" % "3.0.6-SNAP-for-scalafix",
52+
"org.scalatest" %% "scalatest" % "3.0.6-SNAP6",
3653
"org.scalacheck" %% "scalacheck" % "1.14.0",
3754
"org.easymock" % "easymockclassextension" % "3.2",
3855
"org.jmock" % "jmock-legacy" % "2.8.3",
@@ -47,7 +64,7 @@ lazy val output = project.settings(
4764
skip in publish := true,
4865
libraryDependencies ++=
4966
Seq(
50-
"org.scalatest" %% "scalatest" % "3.0.6-SNAP-for-scalafix",
67+
"org.scalatest" %% "scalatest" % "3.0.6-SNAP6",
5168
"org.scalacheck" %% "scalacheck" % "1.14.0",
5269
"org.easymock" % "easymockclassextension" % "3.2",
5370
"org.jmock" % "jmock-legacy" % "2.8.3",

3.0.6/project/plugins.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
resolvers += Resolver.sonatypeRepo("releases")
2-
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.6.0-M19")
2+
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.4")
33
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.2.2")
4+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# scalatestplus-scalafix
1+
# ScalaTest Autofix
22
Auto-fixing error due to version upgrade, good practice etc.
33

4-
This project took inspiration from:
4+
This project is based on Scalafix:
55

6-
https://github.com/olafurpg/named-literal-arguments
6+
https://github.com/scalacenter/scalafix

0 commit comments

Comments
 (0)