-
-
Notifications
You must be signed in to change notification settings - Fork 21
Drop Scala 2.12 + add Scala 3 (but not use it) #176
Changes from all commits
ca297b6
292bbb0
05ca4b2
32ecb07
f80a0c4
97c4f6a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
package interplay | ||
|
||
import sbt._ | ||
import sbt.Keys._ | ||
|
||
import interplay.PlayBuildBase.autoImport._ | ||
|
||
/** | ||
* Base Plugin for a root project that doesn't get published. | ||
|
@@ -13,13 +10,5 @@ import interplay.PlayBuildBase.autoImport._ | |
object PlayRootProjectBase extends AutoPlugin { | ||
override def trigger = noTrigger | ||
override def requires = PlayBuildBase && PlaySonatypeBase && PlayReleaseBase | ||
override def projectSettings = PlayNoPublishBase.projectSettings ++ Seq( | ||
crossScalaVersions := { | ||
if ((ThisBuild / playCrossBuildRootProject).?.value.exists(identity)) { | ||
Seq(ScalaVersions.scala212, ScalaVersions.scala213) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this if-else entirely? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And maybe even remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, I was thinking the same yesterday, but wasn't 100% sure. Actually since this is about root projects, which usually don't get published, I think its ok if we remove the default.
Done. I set |
||
} else { | ||
Seq(ScalaVersions.scala212) | ||
} | ||
} | ||
) | ||
override def projectSettings = PlayNoPublishBase.projectSettings | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,14 @@ $ exec git branch -u origin/main | |
# However, that initial state does not contain the above created .git folder (created via git init) yet. | ||
> reload | ||
|
||
> release cross with-defaults | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason why I removed
Now it turns out that all of these projects explicitly set
Now... scalatestplus-play and slick are not sbt-plugins anyway but, in interplay terms, libraries and therefore set their cross versions to 2.12 and 2.13. Play just sets it to empty list for the root project. The conclusion for me is that |
||
> release with-defaults | ||
|
||
# Make sure scripted tests ran | ||
$ exists mock-sbt-plugin/target/scripted-ran | ||
|
||
# Make sure publishSigned ran on every project with the right publish settings | ||
$ exists target/scala-2.12/publish-version | ||
> contains target/scala-2.12/publish-version no-publish:1.2.3 | ||
$ exists target/scala-2.13/publish-version | ||
> contains target/scala-2.13/publish-version no-publish:1.2.3 | ||
> contains mock-sbt-plugin/target/scala-2.12/sbt-1.0/publish-version sonatype-local-bundle:1.2.3 | ||
|
||
# Make sure bintrayRelease ran only in the root project | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌🏼