-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
67 lines (63 loc) · 2.56 KB
/
build.sbt
File metadata and controls
67 lines (63 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import Dependencies._
ThisBuild / scalaVersion := "2.12.21"
ThisBuild / organization := "com.cloud-apim"
ThisBuild / organizationName := "Cloud-APIM"
ThisBuild / description := "SecLang Engine WAF is a ModSecurity-compatible Web Application Firewall (WAF) library for the JVM, written in Scala."
ThisBuild / homepage := Some(url("https://github.com/cloud-apim/seclang-engine"))
ThisBuild / licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer(
"mathieuancelin",
"Mathieu ANCELIN",
"mathieu@cloud-apim.com",
url("https://github.com/mathieuancelin")
),
Developer(
"cloud-apim",
"Cloud-APIM Team",
"contact@cloud-apim.com",
url("https://github.com/cloud-apim")
)
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/cloud-apim/seclang-engine"),
"scm:git@github.com:cloud-apim/seclang-engine.git"
)
)
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}
usePgpKeyHex("235E536BA3E43419FD649B903C82DD5C11569EF6")
lazy val excludesJackson = Seq(
ExclusionRule(organization = "com.fasterxml.jackson.core"),
ExclusionRule(organization = "com.fasterxml.jackson.datatype"),
ExclusionRule(organization = "com.fasterxml.jackson.dataformat")
)
lazy val root = (project in file("."))
.settings(
name := "seclang-engine",
libraryDependencies ++= Seq(
"com.comcast" %% "ip4s-core" % "3.2.0",
"org.antlr" % "antlr4" % "4.13.2",
"com.typesafe.play" %% "play-json" % "2.9.3",
"com.cloud-apim" % "libinjection-jvm" % "1.2.0",
"com.github.blemale" %% "scaffeine" % "4.0.2",
"org.apache.commons" % "commons-text" % "1.15.0",
"com.idealista" % "tlsh" % "1.0.0",
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-yaml" % "2.13.4" % Test,
"org.openjdk.jol" % "jol-core" % "0.17" % Test,
"org.typelevel" %% "squants" % "1.8.3" % Test excludeAll (excludesJackson: _*) ,
munit % Test
),
Compile / doc / scalacOptions ++= Seq(
"-doc-title", "SecLang Engine",
"-doc-version", version.value
),
Test / javaOptions += "-Djol.magicFieldOffset=true"
)