|
1 | 1 | name := "web-echo"
|
2 | 2 | organization := "fr.janalyse"
|
3 |
| -homepage := Some(url("https://github.com/dacr/web-echo")) |
| 3 | +description := "JSON data recorder" |
4 | 4 |
|
5 | 5 | licenses += "NON-AI-APACHE2" -> url(s"https://github.com/non-ai-licenses/non-ai-licenses/blob/main/NON-AI-APACHE2")
|
6 | 6 |
|
7 |
| -scmInfo := Some( |
8 |
| - ScmInfo( |
9 |
| - url(s"https://github.com/dacr/counters.git"), |
10 |
| - s"[email protected]:dacr/counters.git" |
11 |
| - ) |
12 |
| -) |
13 |
| - |
14 |
| -developers := List( |
15 |
| - Developer( |
16 |
| - id = "dacr", |
17 |
| - name = "David Crosson", |
18 |
| - |
19 |
| - url = url("https://github.com/dacr") |
20 |
| - ) |
21 |
| -) |
22 |
| - |
23 |
| -Compile / mainClass := Some("webecho.Main") |
24 |
| -packageBin / mainClass := Some("webecho.Main") |
25 |
| - |
26 |
| -versionScheme := Some("semver-spec") |
27 |
| - |
28 | 7 | scalaVersion := "2.13.15"
|
29 | 8 |
|
30 | 9 | scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8", "-feature")
|
31 | 10 |
|
32 |
| -Test / testOptions += { |
33 |
| - val rel = scalaVersion.value.split("[.]").take(2).mkString(".") |
34 |
| - Tests.Argument( |
35 |
| - "-oDF", // -oW to remove colors |
36 |
| - "-u", |
37 |
| - s"target/junitresults/scala-$rel/" |
38 |
| - ) |
39 |
| -} |
40 |
| - |
41 | 11 | lazy val versions = new {
|
42 | 12 | // client side dependencies
|
43 | 13 | val swaggerui = "5.17.14"
|
@@ -88,12 +58,28 @@ libraryDependencies ++= Seq(
|
88 | 58 | "org.webjars" % "webjars-locator" % versions.webjarsLocator
|
89 | 59 | )
|
90 | 60 |
|
91 |
| -enablePlugins(JavaServerAppPackaging) |
| 61 | +Compile / mainClass := Some("webecho.Main") |
| 62 | +packageBin / mainClass := Some("webecho.Main") |
92 | 63 |
|
| 64 | +Test / testOptions += { |
| 65 | + val rel = scalaVersion.value.split("[.]").take(2).mkString(".") |
| 66 | + Tests.Argument( |
| 67 | + "-oDF", // -oW to remove colors |
| 68 | + "-u", |
| 69 | + s"target/junitresults/scala-$rel/" |
| 70 | + ) |
| 71 | +} |
| 72 | + |
| 73 | +enablePlugins(JavaServerAppPackaging) |
93 | 74 | enablePlugins(SbtTwirl)
|
94 | 75 |
|
95 |
| -// TODO - to remove when twirl will be available for scala3 |
96 |
| -//libraryDependencies := libraryDependencies.value.map { |
97 |
| -// case module if module.name == "twirl-api" => module.cross(CrossVersion.for3Use2_13) |
98 |
| -// case module => module |
99 |
| -//} |
| 76 | +homepage := Some(url("https://github.com/dacr/web-echo")) |
| 77 | +scmInfo := Some( ScmInfo(url( s"https://github.com/dacr/web-echo.git"), s"[email protected]:dacr/web-echo.git")) |
| 78 | +developers := List( |
| 79 | + Developer( |
| 80 | + id = "dacr", |
| 81 | + name = "David Crosson", |
| 82 | + |
| 83 | + url = url("https://github.com/dacr") |
| 84 | + ) |
| 85 | +) |
0 commit comments