-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (34 loc) · 1.03 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
plugins {
kotlin("jvm") version "1.3.21"
id("com.palantir.graal") version "0.3.0-7-gdb167e6"
}
group = "com.mkring.graalkotlinlambda"
version = "1.0.0-SNAPSHOT"
repositories {
jcenter()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.apache.httpcomponents:httpclient:4.5.7")
implementation("com.google.code.gson:gson:2.8.5")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
graal {
graalVersion("1.0.0-rc14")
mainClass("com.mkring.graalkotlinlambda.MainKt")
outputName("graal-kotlin-lambda-kt")
option("--enable-url-protocols=http")
option("-Djava.net.preferIPv4Stack=true")
option("--enable-all-security-services")
option("--no-server")
option("-H:ReflectionConfigurationFiles=reflection.json")
}
tasks.register<Zip>("packageLambda") {
archiveFileName.set("graal-lambda.zip")
destinationDirectory.set(file("$buildDir/dist"))
from("bootstrap")
from("$buildDir/graal/")
dependsOn("build", "nativeImage")
}