Skip to content

Commit

Permalink
Merge branch 'playframework:main' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineDuComptoirDesPharmacies authored Feb 12, 2024
2 parents 470338b + 2a13870 commit 0fa0712
Show file tree
Hide file tree
Showing 50 changed files with 1,250 additions and 1,122 deletions.
4 changes: 4 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Scala Steward: Reformat with scalafmt 3.5.8
7fe92e05b8508927343db11bd4c6bbbd723253c1
# Enable Java formatter
367b1e5662a20cda35df21d715bd76d1bf4d2324
1 change: 1 addition & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends: .github
8 changes: 0 additions & 8 deletions .github/release-drafter.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/scala-steward.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pullRequests.frequency = "@monthly"

commits.message = "${artifactName} ${nextVersion} (was ${currentVersion})"

pullRequests.grouping = [
{ name = "patches", "title" = "Patch updates", "filter" = [{"version" = "patch"}] }
]

buildRoots = [
".",
"docs",
]

updates.ignore = [
// these will get updated along with ebean, so no need to update them separately
{ groupId = "io.ebean", artifactId = "ebean-ddl-generator" }
{ groupId = "io.ebean", artifactId = "ebean-agent" }
]
72 changes: 72 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Check

on:
pull_request:

push:
branches:
- main # Check branch after merge

concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check-code-style:
name: Code Style
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
cmd: sbt validateCode

check-binary-compatibility:
name: Binary Compatibility
uses: playframework/.github/.github/workflows/binary-check.yml@v3

check-docs:
name: Docs
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.x, 3.x
cmd: cd docs && sbt ++$MATRIX_SCALA validateCode

tests:
name: Tests
needs:
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.x, 3.x
cmd: >-
sbt ++$MATRIX_SCALA test
scripted-tests:
name: Scripted tests
needs:
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.12, 3.3.1
cmd: >-
sbt "
+publishLocal;
set plugin/scriptedLaunchOpts += \"-Dscala.version=$MATRIX_SCALA\";
show scriptedSbt;
show scriptedLaunchOpts;
plugin/scripted;
"
finish:
name: Finish
if: github.event_name == 'pull_request'
needs: # Should be last
- "tests"
- "scripted-tests"
uses: playframework/.github/.github/workflows/rtm.yml@v3
24 changes: 24 additions & 0 deletions .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Dependency Graph
on:
push:
branches:
- main

concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: dependency-graph-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write # this permission is needed to submit the dependency graph

jobs:
dependency-graph:
name: Submit dependencies to GitHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
- uses: scalacenter/sbt-dependency-submission@v2
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish

on:
push:
branches: # Snapshots
- main
tags: ["**"] # Releases

jobs:
publish-artifacts:
name: Publish / Artifacts
uses: playframework/.github/.github/workflows/publish.yml@v3
secrets: inherit
12 changes: 6 additions & 6 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- main

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged
# https://github.com/raboof/release-drafter/releases
# fork of https://github.com/release-drafter/release-drafter/releases
- uses: raboof/release-drafter@v5
- uses: release-drafter/release-drafter@v5
with:
name: "Play Ebean $RESOLVED_VERSION"
config-name: release-drafts/increasing-minor-version.yml # located in .github/ in the default branch within this or the .github repo
commitish: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
align = true
align.preset = true
assumeStandardLibraryStripMargin = true
danglingParentheses = true
docstrings = JavaDoc
danglingParentheses.preset = true
docstrings.style = Asterisk
maxColumn = 120
project.git = true
rewrite.rules = [ AvoidInfix, ExpandImportSelectors, RedundantParens, SortModifiers, PreferCurlyFors ]
rewrite.sortModifiers.order = [ "private", "protected", "final", "sealed", "abstract", "implicit", "override", "lazy" ]
spaces.inImportCurlyBraces = true # more idiomatic to include whitepsace in import x.{ yyy }
trailingCommas = preserve
newlines.afterCurlyLambda = preserve
version = 2.6.4
runner.dialect = scala212source3
version = 3.7.17
71 changes: 0 additions & 71 deletions .travis.yml

This file was deleted.

65 changes: 39 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,52 @@
# play-ebean
<!--- Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com> -->

[![Build Status](https://travis-ci.com/playframework/play-ebean.svg?branch=master)](https://travis-ci.com/playframework/play-ebean)
[![Maven](https://img.shields.io/maven-central/v/com.typesafe.play/play-ebean_2.12.svg)](http://mvnrepository.com/artifact/com.typesafe.play/play-ebean_2.12)
# Play Ebean

[![Twitter Follow](https://img.shields.io/twitter/follow/playframework?label=follow&style=flat&logo=twitter&color=brightgreen)](https://twitter.com/playframework)
[![Discord](https://img.shields.io/discord/931647755942776882?logo=discord&logoColor=white)](https://discord.gg/g5s2vtZ4Fa)
[![GitHub Discussions](https://img.shields.io/github/discussions/playframework/playframework?&logo=github&color=brightgreen)](https://github.com/playframework/playframework/discussions)
[![StackOverflow](https://img.shields.io/static/v1?label=stackoverflow&logo=stackoverflow&logoColor=fe7a16&color=brightgreen&message=playframework)](https://stackoverflow.com/tags/playframework)
[![YouTube](https://img.shields.io/youtube/channel/views/UCRp6QDm5SDjbIuisUpxV9cg?label=watch&logo=youtube&style=flat&color=brightgreen&logoColor=ff0000)](https://www.youtube.com/channel/UCRp6QDm5SDjbIuisUpxV9cg)
[![Twitch Status](https://img.shields.io/twitch/status/playframework?logo=twitch&logoColor=white&color=brightgreen&label=live%20stream)](https://www.twitch.tv/playframework)
[![OpenCollective](https://img.shields.io/opencollective/all/playframework?label=financial%20contributors&logo=open-collective)](https://opencollective.com/playframework)

[![Build Status](https://github.com/playframework/play-ebean/actions/workflows/build-test.yml/badge.svg)](https://github.com/playframework/play-ebean/actions/workflows/build-test.yml)
[![Maven](https://img.shields.io/maven-central/v/org.playframework/play-ebean_2.13.svg?logo=apache-maven)](https://mvnrepository.com/artifact/org.playframework/play-ebean_2.13)
[![Repository size](https://img.shields.io/github/repo-size/playframework/play-ebean.svg?logo=git)](https://github.com/playframework/play-ebean)
[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://api.mergify.com/v1/badges/playframework/play-ebean&style=flat)](https://mergify.com)

This module provides Ebean support for Play Framework.

## Releases

The Play Ebean plugin supports several different versions of Play and Ebean.

| Plugin version | Play version | Ebean version |
|----------------|--------------|---------------|
| 6.1.0 | 2.8.x | 12.8.1 |
| 6.0.0 | 2.8.1 | 11.45.1 |
| 5.0.2 | 2.7.0 | 11.39.x |
| 5.0.1    | 2.7.0   | 11.32.x       |
| 5.0.0    | 2.7.0   | 11.22.x       |
| 4.1.4 | 2.6.x | 11.32.x |
| 4.1.3         | 2.6.x       | 11.15.x       |
| 4.1.0         | 2.6.x       | 11.7.x       |
| 4.0.6         | 2.6.x       | 10.4.x       |
| 4.0.2 | 2.6.x | 10.3.x |
| 3.2.0 | 2.5.x | 10.4.x |
| 3.1.0 | 2.5.x | 8.2.x |
| 3.0.2 | 2.5.x | 7.6.x |
| 3.0.1         | 2.5.x       | 6.18.x        |
| 2.0.0         | 2.4.x       | 6.8.x         |
| 1.0.0 | 2.4.x | 4.6.x |
| Plugin version | Play version | Ebean version |
|------------------------------------------------------------------------------------------------------------|--------------|---------------|
| 8.0.0 | 3.0.0+ | 13.17.3 |
| 7.0.0 | 2.9.0+ | 13.17.3 |
| 6.2.0<br>**! [Important notes](https://github.com/playframework/play-ebean/releases/tag/6.2.0-RC4) !** | 2.8.18+ | 12.16.1 |
| 6.0.0 | 2.8.1 | 11.45.1 |
| 5.0.2 | 2.7.0 | 11.39.x |
| 5.0.1    | 2.7.0   | 11.32.x       |
| 5.0.0    | 2.7.0   | 11.22.x       |
| 4.1.4 | 2.6.x | 11.32.x |
| 4.1.3         | 2.6.x       | 11.15.x       |
| 4.1.0         | 2.6.x       | 11.7.x       |
| 4.0.6         | 2.6.x       | 10.4.x       |
| 4.0.2 | 2.6.x | 10.3.x |
| 3.2.0 | 2.5.x | 10.4.x |
| 3.1.0 | 2.5.x | 8.2.x |
| 3.0.2 | 2.5.x | 7.6.x |
| 3.0.1         | 2.5.x       | 6.18.x        |
| 2.0.0         | 2.4.x       | 6.8.x         |
| 1.0.0 | 2.4.x | 4.6.x |

> * Release Candidate: these releases are not stable and should not be used in production.
## Support

The Play Ebean support library is *[Community Driven][]*.

We also recommend using the payintech fork: https://github.com/payintech/play-ebean

[Community Driven]: https://developer.lightbend.com/docs/introduction/getting-help/support-terminology.html
## Releasing a new version

See https://github.com/playframework/.github/blob/main/RELEASING.md
24 changes: 0 additions & 24 deletions RELEASING.md

This file was deleted.

Loading

0 comments on commit 0fa0712

Please sign in to comment.