File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
plugin/src/main/scala/com/geirsson Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1+ lazy val scala212 = " 2.12.20"
2+ lazy val scala3 = " 3.3.4"
3+
14inThisBuild(
25 List (
36 organization := " com.github.sbt" ,
@@ -12,7 +15,8 @@ inThisBuild(
12151316 url(" https://geirsson.com" )
1417 )
15- )
18+ ),
19+ crossScalaVersions := Seq (scala212)
1620 )
1721)
1822
@@ -24,7 +28,12 @@ lazy val plugin = project
2428 .enablePlugins(SbtPlugin )
2529 .settings(
2630 moduleName := " sbt-ci-release" ,
27- pluginCrossBuild / sbtVersion := " 1.0.4" ,
31+ (pluginCrossBuild / sbtVersion) := {
32+ scalaBinaryVersion.value match {
33+ case " 2.12" => " 1.5.8"
34+ case _ => " 2.0.0-M2"
35+ }
36+ },
2837 addSbtPlugin(" com.github.sbt" % " sbt-dynver" % " 5.0.1" ),
2938 addSbtPlugin(" com.github.sbt" % " sbt-git" % " 2.0.1" ),
3039 addSbtPlugin(" com.github.sbt" % " sbt-pgp" % " 2.2.1" ),
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ object CiReleasePlugin extends AutoPlugin {
130130 )
131131
132132 override lazy val globalSettings : Seq [Def .Setting [_]] = List (
133- publishArtifact.in (Test ) := false ,
133+ (Test / publishArtifact ) := false ,
134134 publishMavenStyle := true ,
135135 commands += Command .command(" ci-release" ) { currentState =>
136136 val shouldDeployToSonatypeCentral = isDeploySetToSonatypeCentral(currentState)
@@ -200,7 +200,7 @@ object CiReleasePlugin extends AutoPlugin {
200200 )
201201
202202 def isDeploySetToSonatypeCentral (state : State ): Boolean = {
203- sonatypeCredentialHost.in (ThisBuild ).get(Project .extract(state).structure.data) match {
203+ (ThisBuild / sonatypeCredentialHost ).get(Project .extract(state).structure.data) match {
204204 case Some (value) if value == Sonatype .sonatypeCentralHost => {
205205 true
206206 }
@@ -209,7 +209,7 @@ object CiReleasePlugin extends AutoPlugin {
209209 }
210210
211211 def isSnapshotVersion (state : State ): Boolean = {
212- version.in (ThisBuild ).get(Project .extract(state).structure.data) match {
212+ (ThisBuild / version ).get(Project .extract(state).structure.data) match {
213213 case Some (v) => v.endsWith(" -SNAPSHOT" )
214214 case None => throw new NoSuchFieldError (" version" )
215215 }
Original file line number Diff line number Diff line change 1- unmanagedSourceDirectories.in( Compile ) +=
2- baseDirectory.in (ThisBuild ).value.getParentFile /
1+ Compile / unmanagedSourceDirectories +=
2+ (ThisBuild / baseDirectory ).value.getParentFile /
33 " plugin" / " src" / " main" / " scala"
44addSbtPlugin(" com.github.sbt" % " sbt-dynver" % " 5.0.1" )
55addSbtPlugin(" com.github.sbt" % " sbt-git" % " 2.0.1" )
You can’t perform that action at this time.
0 commit comments