File tree Expand file tree Collapse file tree 14 files changed +30
-30
lines changed
src/sbt-test/sbt-buildinfo Expand file tree Collapse file tree 14 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 11lazy val check = taskKey[Unit ](" check" )
22
3- ThisBuild / scalaVersion := " 2.12.12 "
3+ ThisBuild / scalaVersion := " 2.12.21 "
44ThisBuild / organization := " com.example"
55ThisBuild / version := " 0.1"
66ThisBuild / homepage := Some (url(" http://example.com" ))
@@ -33,8 +33,8 @@ lazy val root = (project in file("."))
3333 """ val name: String = "helloworld"""" ::
3434 """ /** The value is "0.1". */""" ::
3535 """ val version: String = "0.1"""" ::
36- """ /** The value is "2.12.12 ". */""" ::
37- """ val scalaVersion: String = "2.12.12 """" ::
36+ """ /** The value is "2.12.21 ". */""" ::
37+ """ val scalaVersion: String = "2.12.21 """" ::
3838 sbtVersionComment ::
3939 sbtVersionCode ::
4040 """ /** The value is "com.example". */""" ::
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import scala.collection.immutable.::
22
33lazy val check = taskKey[Unit ](" checks this plugin" )
44
5- ThisBuild / scalaVersion := " 2.12.12 "
5+ ThisBuild / scalaVersion := " 2.12.21 "
66ThisBuild / organization := " com.example"
77ThisBuild / version := " 0.1"
88ThisBuild / homepage := Some (url(" http://example.com" ))
@@ -38,8 +38,8 @@ lazy val root = (project in file("."))
3838 """ val name: String = "helloworld"""" ::
3939 """ /** The value is "0.1". */""" ::
4040 """ val version: String = "0.1"""" ::
41- """ /** The value is "2.12.12 ". */""" ::
42- """ val scalaVersion: String = "2.12.12 """" ::
41+ """ /** The value is "2.12.21 ". */""" ::
42+ """ val scalaVersion: String = "2.12.21 """" ::
4343 builtAtStringComment ::
4444 builtAtString ::
4545 builtAtMillisComment ::
Original file line number Diff line number Diff line change 11lazy val check = taskKey[Unit ](" check" )
22
3- ThisBuild / scalaVersion := " 2.12.12 "
3+ ThisBuild / scalaVersion := " 2.12.21 "
44ThisBuild / organization := " com.example"
55ThisBuild / version := " 0.1"
66ThisBuild / homepage := Some (url(" http://example.com" ))
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import sbtbuildinfo.ScalaCaseClassRenderer
33lazy val check = taskKey[Unit ](" checks this plugin" )
44
55ThisBuild / version := " 0.1"
6- ThisBuild / scalaVersion := " 2.12.12 "
6+ ThisBuild / scalaVersion := " 2.12.21 "
77ThisBuild / homepage := Some (url(" http://example.com" ))
88ThisBuild / licenses := Seq (" MIT License" -> url(" https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE" ))
99
@@ -105,7 +105,7 @@ lazy val root = (project in file("."))
105105 """ def apply(): BuildInfo = new BuildInfo(""" ::
106106 """ name = "helloworld",""" ::
107107 """ projectVersion = 0.1,""" ::
108- """ scalaVersion = "2.12.12 ",""" ::
108+ """ scalaVersion = "2.12.21 ",""" ::
109109 """ ivyXML = scala.xml.NodeSeq.Empty,""" ::
110110 homepage ::
111111 licenses ::
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import sbtbuildinfo.JavaSingletonRenderer
33lazy val check = taskKey[Unit ](" checks this plugin" )
44
55ThisBuild / version := " 0.1"
6- ThisBuild / scalaVersion := " 2.12.12 "
6+ ThisBuild / scalaVersion := " 2.12.21 "
77ThisBuild / homepage := Some (url(" http://example.com" ))
88ThisBuild / licenses := Seq (" MIT License" -> url(" https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE" ))
99
@@ -51,8 +51,8 @@ lazy val root = (project in file("."))
5151 """ """ ::
5252 """ /** The value is "helloworld". */""" ::
5353 """ public final String name = "helloworld";""" ::
54- """ /** The value is "2.12.12 ". */""" ::
55- """ public final String scalaVersion = "2.12.12 ";""" ::
54+ """ /** The value is "2.12.21 ". */""" ::
55+ """ public final String scalaVersion = "2.12.21 ";""" ::
5656 homepageComment ::
5757 homepageCode ::
5858 licensesComment ::
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import sbtbuildinfo.JavaStaticFieldsRenderer
33lazy val check = taskKey[Unit ](" checks this plugin" )
44
55ThisBuild / version := " 0.1"
6- ThisBuild / scalaVersion := " 2.12.12 "
6+ ThisBuild / scalaVersion := " 2.12.21 "
77ThisBuild / homepage := Some (url(" http://example.com" ))
88ThisBuild / licenses := Seq (" MIT License" -> url(" https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE" ))
99
@@ -49,8 +49,8 @@ lazy val root = (project in file("."))
4949 """ """ ::
5050 """ /** The value is "helloworld". */""" ::
5151 """ public static final String name = "helloworld";""" ::
52- """ /** The value is "2.12.12 ". */""" ::
53- """ public static final String scalaVersion = "2.12.12 ";""" ::
52+ """ /** The value is "2.12.21 ". */""" ::
53+ """ public static final String scalaVersion = "2.12.21 ";""" ::
5454 homepageComment ::
5555 homepageCode ::
5656 licensesComment ::
Original file line number Diff line number Diff line change 11lazy val check = taskKey[Unit ](" checks this plugin" )
22
33ThisBuild / version := " 0.1"
4- ThisBuild / scalaVersion := " 2.12.12 "
4+ ThisBuild / scalaVersion := " 2.12.21 "
55
66lazy val root = (project in file(" ." ))
77 .enablePlugins(BuildInfoPlugin )
@@ -36,8 +36,8 @@ lazy val root = (project in file("."))
3636 """ private[hello] case object BuildInfo extends TestTrait1 with TestTrait2 with TestTrait3 {""" ::
3737 """ /** The value is "helloworld". */""" ::
3838 """ val name: String = "helloworld"""" ::
39- """ /** The value is "2.12.12 ". */""" ::
40- """ val scalaVersion: String = "2.12.12 """" ::
39+ """ /** The value is "2.12.21 ". */""" ::
40+ """ val scalaVersion: String = "2.12.21 """" ::
4141 """ override val toString: String = {""" ::
4242 """ "name: %s, scalaVersion: %s".format(""" ::
4343 """ name, scalaVersion""" ::
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package hello
33import scala .Predef ._
44
55object Test extends scala.App {
6- val expected = """ {"name":"helloworld", "scalaVersion":"2.12.12 "}"""
6+ val expected = """ {"name":"helloworld", "scalaVersion":"2.12.21 "}"""
77 val actual = hello.BuildInfo .toJson
88 assert(actual == expected, " expected " + expected + " but found " + actual)
99}
Original file line number Diff line number Diff line change 33# $ exists target/scala-2.13/src_managed/main/sbt-buildinfo/BuildInfo.scala
44> check
55
6- > ++2.12.12 !
6+ > ++2.12.21 !
77> compile
88> doc
99# $ exists target/scala-2.12/src_managed/main/sbt-buildinfo/BuildInfo.scala
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import sbtbuildinfo.ScalaCaseClassRenderer
33lazy val check = taskKey[Unit ](" checks this plugin" )
44
55ThisBuild / version := " 0.1"
6- ThisBuild / scalaVersion := " 2.12.12 "
6+ ThisBuild / scalaVersion := " 2.12.21 "
77ThisBuild / homepage := Some (url(" http://example.com" ))
88ThisBuild / licenses := Seq (" MIT License" -> url(" https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE" ))
99
@@ -93,7 +93,7 @@ lazy val root = (project in file("."))
9393 """ case object BuildInfo {""" ::
9494 """ def apply(): BuildInfo = new BuildInfo(""" ::
9595 """ name = "helloworld",""" ::
96- """ scalaVersion = "2.12.12 ",""" ::
96+ """ scalaVersion = "2.12.21 ",""" ::
9797 """ ivyXML = scala.xml.NodeSeq.Empty,""" ::
9898 homagepageApply ::
9999 licensesApply ::
You can’t perform that action at this time.
0 commit comments