-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
86 lines (71 loc) · 2.39 KB
/
build.gradle
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
74
75
76
77
78
79
80
81
82
83
84
85
86
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.cloud.tools:appengine-gradle-plugin:$appengine_plugin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.google.cloud.tools.appengine'
group 'ca.etsmtl.applets.notre_dame.whatsnew'
version '0.0.2'
mainClassName = "ca.etsmtl.applets.notre_dame.whatsnew.WhatsNewKt"
sourceSets {
main.kotlin.srcDirs = ['src/main/kotlin']
test.kotlin.srcDirs = ['test']
main.resources.srcDirs = ['src/main/resources']
test.resources.srcDirs = ['testresources']
}
repositories {
mavenLocal()
jcenter()
maven { url 'https://kotlin.bintray.com/ktor' }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "io.ktor:ktor-metrics:$ktor_version"
compile "io.ktor:ktor-server-core:$ktor_version"
compile "io.ktor:ktor-auth-jwt:$ktor_version"
compile "io.ktor:ktor-jackson:$ktor_version"
compile "org.kodein.di:kodein-di-generic-jvm:$kodein_version"
compile "org.mindrot:jbcrypt:$jbcrypt_version"
compile "com.github.salomonbrys.kotson:kotson:$kotson_version"
// FIRESTORE
compile "com.google.cloud:google-cloud-firestore:$firestore_version"
implementation "io.ktor:ktor-locations:$ktor_version"
testCompile "io.ktor:ktor-server-tests:$ktor_version"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinTest).all {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
}
shadowJar {
mergeServiceFiles {
setPath("META-INF/services")
include("io.grpc.*")
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
appengine {
deploy {
projectId = "whats-new-api"
version = 'GCLOUD_CONFIG'
}
stage {
artifact = "build/libs/$project.name-${project.version}-all.jar"
}
}