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

Play 2.8 merge master #383

Merged
merged 25 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
84eb03b
Setting version to 0.10.2
kailuowang Sep 15, 2020
950e3f4
Setting version to 0.10.3-SNAPSHOT
kailuowang Sep 15, 2020
f338f87
Update README.md
kailuowang Sep 15, 2020
7433404
Update swagger-ui dependency in the readme
lalnuo Oct 9, 2020
f8abefe
Merge pull request #350 from lalnuo/master
kailuowang Oct 9, 2020
6b813ea
Update play-test, routes-compiler to 2.7.9
scala-steward Dec 14, 2020
0dc9a25
Update snakeyaml to 1.28
scala-steward Feb 22, 2021
b2e0e4b
Update README.md
sergiuszkierat Feb 24, 2021
9ac1477
Merge pull request #367 from sergiuszkierat/patch-1
kailuowang Feb 25, 2021
ec980de
Merge pull request #358 from scala-steward/update/play-test-2.7.9
kailuowang Feb 25, 2021
814cf08
Merge pull request #366 from scala-steward/update/snakeyaml-1.28
kailuowang Mar 14, 2021
9f5d21b
Update Publish.scala for Sonatype
interpayments-danny May 6, 2021
fce31fd
Update Publish.scala
kailuowang May 7, 2021
ee8257e
Update build.sbt
kailuowang May 7, 2021
40d50f4
try action
kailuowang May 7, 2021
ed28bf3
Update scala.yml
kailuowang May 7, 2021
8504e0b
Update scala.yml
kailuowang May 7, 2021
7bdabfe
Update plugins.sbt
kailuowang May 7, 2021
123f4f5
Merge pull request #377 from dcn0503/master
kailuowang May 7, 2021
6607d88
added developers
kailuowang May 7, 2021
ac54677
Merge pull request #380 from iheartradio/kailuowang-patch-4
kailuowang May 7, 2021
784ec91
Setting version to 0.10.4
kailuowang May 7, 2021
da222cb
Setting version to 0.10.5-SNAPSHOT
kailuowang May 7, 2021
dca12df
merged in master
kailuowang May 7, 2021
f152da6
fix example
kailuowang May 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Scala CI

on:
push:
branches: [ master ]
pull_request:
branches: [ '*' ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Sbt Plugin tests
run:
sbt clean sbtPlaySwagger/scripted
- name: Core Lib tests
run:
sbt ';project playSwagger;clean;+test'
- name: Example compile
run:
cd example && sbt clean compile
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ You can find the setup in the example project as well.

For play 2.7, sbt 1.x please use
```scala
addSbtPlugin("com.iheart" % "sbt-play-swagger" % "0.10.0")
addSbtPlugin("com.iheart" % "sbt-play-swagger" % "0.10.2")
```

For play 2.8, please use
```scala
addSbtPlugin("com.iheart" % "sbt-play-swagger" % "0.10.0-PLAY2.8")
addSbtPlugin("com.iheart" % "sbt-play-swagger" % "0.10.2-PLAY2.8")
```

For play 2.6, sbt 1.x, Scala 2.12.x and 2.11.x please use (No Longer maintained after 0.10.0)
Expand Down Expand Up @@ -154,9 +154,9 @@ Deploy a swagger ui and point to the swagger spec end point at 'assets/swagger.j
#### Step 3b
Alternatively you can use swagger-ui webjar and have you play app serving the swagger ui:

Add the following dependency
Add the following dependency (check latest version swagger-ui [here](https://github.com/webjars/swagger-ui))
```scala
libraryDependencies += "org.webjars" % "swagger-ui" % "2.2.0"
libraryDependencies += "org.webjars" % "swagger-ui" % "3.43.0"
```

Add the following to your route file
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ lazy val playSwagger = project.in(file("core"))

lazy val sbtPlaySwagger = project.in(file("sbtPlugin"))
.settings(
Publish.sbtPluginSettings,
Publish.coreSettings,
Format.settings,
addSbtPlugin("com.typesafe.sbt" %% "sbt-native-packager" % "1.3.17" % Provided),
addSbtPlugin("com.typesafe.sbt" %% "sbt-web" % "1.4.3" % Provided))
Expand Down
2 changes: 1 addition & 1 deletion example/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ addSbtPlugin("com.typesafe.play" %% "sbt-plugin" % "2.8.0")


// play swagger plugin
addSbtPlugin("com.iheart" % "sbt-play-swagger" % "0.10.3-SNAPSHOT")
addSbtPlugin("com.iheart" % "sbt-play-swagger" % "0.10.4-SNAPSHOT")


2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object Dependencies {
"com.typesafe.play" %% "play-json" % Versions.playJson % "provided")

val yaml = Seq(
"org.yaml" % "snakeyaml" % "1.27")
"org.yaml" % "snakeyaml" % "1.28")

val enumeratum = Seq(
"com.beachape" %% "enumeratum" % Versions.enumeratum % Test)
Expand Down
35 changes: 24 additions & 11 deletions project/Publish.scala
Original file line number Diff line number Diff line change
@@ -1,36 +1,49 @@
import com.typesafe.sbt.pgp.PgpKeys
import sbt._, Keys._
import bintray.BintrayKeys._
import sbtrelease.ReleasePlugin.autoImport._
import ReleaseTransformations._

object Publish {

val coreSettings = Seq(
bintrayOrganization := Some("iheartradio"),
bintrayPackageLabels := Seq("play-framework", "swagger", "rest-api", "API", "documentation"),
organization in ThisBuild := "com.iheart",
publishMavenStyle := true,
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("http://iheartradio.github.io/play-swagger")),
scmInfo := Some(ScmInfo(
url("https://github.com/iheartradio/play-swagger"),
"git@github.com:iheartradio/play-swagger.git")),
developers := List(
Developer(
"kailuowang",
"Kailuo Wang",
"kailuo.wang@gmail.com",
url("https://kailuowang.com")
)
),
pomIncludeRepository := { _ ⇒ false },
publishArtifact in Test := false,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("Snapshots" at nexus + "content/repositories/snapshots")
else
Some("Releases" at nexus + "service/local/staging/deploy/maven2")
},
releaseCrossBuild := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
releaseStepCommandAndRemaining("+clean"),
releaseStepCommandAndRemaining("+test"),
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publish"),
publishArtifacts,
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges))


val sbtPluginSettings = Seq(
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")),
publishMavenStyle := false,
bintrayOrganization := Some("iheartradio"))
}
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8")

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1")

addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.10")

Expand Down