Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for play 2.9 and 3.0; drop play 2.7 #121

Merged
merged 18 commits into from
Oct 31, 2023
Merged

Build for play 2.9 and 3.0; drop play 2.7 #121

merged 18 commits into from
Oct 31, 2023

Conversation

andrew-nowak
Copy link
Member

@andrew-nowak andrew-nowak commented Oct 31, 2023

panda will be one of the first blockers to trying a play upgrade on another tool

I haven't yet tried a snapshot of this, which will be next step before requesting review and publishing this released as 1.4.0-SNAPSHOT

Also includes a bit of a restructure of the repo - updated build.sbt, trying a hack to remove the copy/paste of the panda-play source codes, etc.

I've not yet included Scala 3 builds - we'll need to get to the new play versions before we can do that upgrade, but I'll give it a try soon anyway - looks less trivial since there's dependencies that aren't available for scala 3 :( but if I understand right we can always use 2.13 builds of panda on scala 3 projects anyway, so I don't feel any need to rush into setting up that build

  • Tested with a play 2.9 upgrade https://github.com/guardian/crosswordv2/pull/132
  • Tested with a play 3.0 upgrade (not done but since the 2.9 works I'm pretty confident in the 3.0 too - the only differences are pekko over akka (not referenced directly in panda), and the dependency group ID)

Settings set in project/*.sbt will affect compilation of the build.sbt file,
so setting -deprecation here will report deprecation warnings when running
sbt
The `key in scope` syntax is replaced by `scope / key`
The `ThisBuild` scope means that the setting is applied as a fallback
for each subproject - it doesn't really make sense to apply in the
`commonSettings` block which is applied to each subproject individually.
This still exists but is not really used any more - all artifacts can
be found on Maven Central.
panda doesn't use it, so don't enable it
These projects won't get released, and each subproject which will,
already has sonatypeReleaseSettings applied, so this is unnecessary.
See panda-hmac for an existing example
panda-play-2_7 and 2_8 always had the same source code, so it was a
shame that they were always duplicated. Going forward, where divergence
isn't needed, have both projects point to the same sources.
@andrew-nowak
Copy link
Member Author

snapshots published as 1.4.0-SNAPSHOT

@andrew-nowak andrew-nowak marked this pull request as ready for review October 31, 2023 12:24
@andrew-nowak andrew-nowak requested a review from a team as a code owner October 31, 2023 12:24
Copy link
Member

@davidfurey davidfurey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@andrew-nowak andrew-nowak merged commit d31dac9 into main Oct 31, 2023
1 check passed
@andrew-nowak andrew-nowak deleted the an/play-30 branch October 31, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants