Skip to content

Commit

Permalink
Play 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Jan 15, 2024
1 parent 8e81111 commit 718b018
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 38 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ webjars-file-service

Todo:
- Local Cache with fallback to remote cache with fallback to no cache
-
10 changes: 3 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ libraryDependencies ++= Seq(
filters,
cacheApi,

// https://github.com/playframework/playframework/releases/2.8.15
"com.google.inject" % "guice" % "5.1.0",
"com.google.inject.extensions" % "guice-assistedinject" % "5.1.0",

"org.webjars" %% "webjars-play" % "2.9.1",
"org.apache.commons" % "commons-io" % "1.3.2",
"org.webjars" %% "webjars-play" % "3.0.1",
"commons-io" % "commons-io" % "2.15.1",
"com.github.mumoshu" %% "play2-memcached-play28" % "0.11.0",
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1" % Test,
"com.dimafeng" %% "testcontainers-scala-scalatest" % "0.41.0" % Test
)

javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
javacOptions ++= Seq("--release", "11")

Test / fork := true
2 changes: 1 addition & 1 deletion conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ memcached.host=${?MEMCACHIER_SERVERS}
memcached.user=${?MEMCACHIER_USERNAME}
memcached.password=${?MEMCACHIER_PASSWORD}

akka {
pekko {
actor {
default-dispatcher {
fork-join-executor {
Expand Down
46 changes: 23 additions & 23 deletions conf/logback.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<!-- https://www.playframework.com/documentation/latest/SettingsLogger -->
<configuration>

<conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%coloredLevel %logger{15} - %message%n%xException{10}</pattern>
</encoder>
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>
<configuration>
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/>
<import class="ch.qos.logback.classic.AsyncAppender"/>
<import class="ch.qos.logback.core.ConsoleAppender"/>

<logger name="play" level="INFO" />
<logger name="application" level="DEBUG" />
<appender name="STDOUT" class="ConsoleAppender">
<encoder class="PatternLayoutEncoder">
<pattern>%coloredLevel %logger{15} - %message%n%xException{10}</pattern>
</encoder>
</appender>

<!-- Off these ones as they are annoying, and anyway we manage configuration ourselves -->
<logger name="com.avaje.ebean.config.PropertyMapLoader" level="OFF" />
<logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="OFF" />
<logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="OFF" />
<logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF" />
<appender name="ASYNCSTDOUT" class="AsyncAppender">
<appender-ref ref="STDOUT"/>
</appender>

<root level="WARN">
<appender-ref ref="ASYNCSTDOUT" />
</root>
<logger name="play" level="INFO"/>
<logger name="application" level="DEBUG"/>
<logger name="com.avaje.ebean.config.PropertyMapLoader" level="OFF"/>
<logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="OFF"/>
<logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="OFF"/>
<logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF"/>

<root level="WARN">
<appender-ref ref="ASYNCSTDOUT"/>
</root>
</configuration>
7 changes: 1 addition & 6 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.1")

// https://github.com/sbt/sbt/issues/7007
ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.1")

0 comments on commit 718b018

Please sign in to comment.