Skip to content

Commit

Permalink
feat: adding play native loader
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeQuadrat committed Jul 11, 2023
1 parent 4b295b8 commit 6df5425
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbt._
//settings

name := """scala-utils"""
val releaseVersion = "2.0.7"
val releaseVersion = "2.0.8"

val token = sys.env.getOrElse("GITHUB_TOKEN", "")

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package de.innfactory.play.common

final class PlayNativeLoader {

// native library and play class loader must be same. Thus loadLibrary must be called from a jar.
// https://github.com/playframework/playframework/issues/2212#issuecomment-58824866
def load(name: String): Unit =
System.loadLibrary(name)

}

0 comments on commit 6df5425

Please sign in to comment.