-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
73 lines (60 loc) · 2.35 KB
/
build.gradle.kts
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
68
69
70
71
72
73
plugins {
maven
scala
`java-library`
id("com.github.johnrengelman.shadow") version "4.0.2"
}
val scalaCompilerPlugin: Configuration = configurations.create("scalaCompilerPlugin")
tasks.getByName<Wrapper>("wrapper") {
gradleVersion = "4.10.2"
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
// Combine dependencies from the 'shadow' configuration instead!
configurations = listOf(project.configurations.getByName("shadow"))
artifacts {
add("archives", this@withType)
}
archiveName = "$baseName-$version.$extension"
relocate("io.circe", "io.github.portfoligno.php.parser.backend.internal.circe")
relocate("org.http4s.circe", "io.github.portfoligno.php.parser.backend.internal.http4s.circe")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
jcenter()
maven("https://jitpack.io")
}
dependencies {
scalaCompilerPlugin("org.scalamacros:paradise_2.12.7:2.1.1")
api("org.scala-lang:scala-library:2.12.7")
api("co.fs2:fs2-io_2.12:1.0.0")
implementation("org.http4s:http4s-blaze-client_2.12:0.19.0")
implementation("org.http4s:http4s-dsl_2.12:0.19.0")
implementation("is.cir:ciris-cats-effect_2.12:0.11.0")
shadow("org.http4s:http4s-circe_2.12:0.19.0") { setTransitive(false) }
shadow("io.circe:circe-fs2_2.12:0.10.0") { setTransitive(false) }
shadow("io.github.sd-yip.circe:circe-jawn_2.12:d0923ca4") { setTransitive(false) }
implementation("org.http4s:http4s-jawn_2.12:0.19.0")
implementation("org.spire-math:jawn-parser_2.12:0.13.0")
shadow("io.github.sd-yip.circe:circe-generic-extras_2.12:d0923ca4") { setTransitive(false) }
shadow("io.github.sd-yip.circe:circe-generic_2.12:d0923ca4") { setTransitive(false) }
implementation("com.chuusai:shapeless_2.12:2.3.3")
shadow("io.github.sd-yip.circe:circe-core_2.12:d0923ca4") {
exclude("org.scala-lang")
exclude("org.typelevel")
}
testImplementation("org.scalacheck:scalacheck_2.12:1.14.0")
testImplementation("org.slf4j:slf4j-simple:1.7.25")
}
tasks.withType<ScalaCompile> {
scalaCompileOptions.additionalParameters = listOf(
"-Xplugin:" + scalaCompilerPlugin.asPath,
"-Ypartial-unification",
"-language:higherKinds")
scalaCompileOptions.forkOptions.jvmArgs!!.addAll(arrayOf(
"-Xss32m",
"-Xmx8g",
"-XX:MaxJavaStackTraceDepth=-1"))
}