-
-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gradle support for
play-java-chatroom-example
- Loading branch information
Showing
14 changed files
with
468 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Ignore Gradle project-specific cache directory | ||
.gradle | ||
|
||
# Ignore Gradle build output directory | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import play.gradle.plugin.PlayPlugin | ||
|
||
plugins { | ||
alias(libs.plugins.twirl) | ||
alias(libs.plugins.play) | ||
} | ||
|
||
val scalaVersion = System.getProperty("scala.version", PlayPlugin.DEFAULT_SCALA_VERSION).trimEnd { !it.isDigit() } | ||
|
||
dependencies { | ||
implementation(platform("org.playframework:play-bom_$scalaVersion:${libs.versions.play.get()}")) | ||
|
||
implementation("org.playframework:play-java-forms_$scalaVersion") | ||
implementation("org.playframework:play-pekko-http-server_$scalaVersion") | ||
implementation("org.playframework:play-ahc-ws_$scalaVersion") | ||
implementation("org.playframework:play-guice_$scalaVersion") | ||
implementation("org.playframework:play-logback_$scalaVersion") | ||
implementation("org.webjars:webjars-play_$scalaVersion:${libs.versions.webjars.play.get()}") | ||
implementation(libs.flot) | ||
implementation(libs.bootstrap) | ||
|
||
testImplementation(libs.junit) | ||
testImplementation("org.playframework:play-test_$scalaVersion") | ||
testImplementation(libs.assertj) | ||
testImplementation(libs.awaitility) | ||
} | ||
|
||
tasks.test { | ||
systemProperty("testserver.port", "19001") | ||
} | ||
|
||
tasks.withType<ScalaCompile>().configureEach { | ||
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation", "-Werror")) | ||
} | ||
|
||
// TODO: Remove after release Play Gradle Plugin | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
url = uri("https://oss.sonatype.org/content/repositories/snapshots") | ||
} | ||
mavenLocal() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[versions] | ||
twirl = "2.0.3" | ||
play = "3.0.2-522fdae8-SNAPSHOT" | ||
junit = "4.13.1" | ||
webjars-play = "3.0.0" | ||
flot = "0.8.3" | ||
bootstrap = "3.4.1" | ||
assertj = "3.24.2" | ||
awaitility = "4.2.0" | ||
|
||
[libraries] | ||
junit = { group = "junit", name = "junit", version.ref = "junit" } | ||
flot = { group = "org.webjars", name = "flot", version.ref = "flot" } | ||
bootstrap = { group = "org.webjars", name = "bootstrap", version.ref = "bootstrap" } | ||
assertj = { group = "org.assertj", name = "assertj-core", version.ref = "assertj" } | ||
awaitility = { group = "org.awaitility", name = "awaitility", version.ref = "awaitility" } | ||
|
||
[plugins] | ||
twirl = { id = "org.playframework.twirl", version.ref = "twirl" } | ||
play = { id = "org.playframework.play", version.ref = "play" } |
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
play-java-chatroom-example/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.