This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
93 lines (83 loc) · 2.86 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
87
88
89
90
91
92
plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
application {
mainClassName('com.andromeda.araserver.Run')
}
version = 1.8
sourceCompatibility = 1.8
mainClassName = 'com.andromeda.araserver.Run'
jar {
manifest {
attributes(
'Main-Class': mainClassName
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
group 'ara-server'
version '1.0-SNAPSHOT'
ext.ktor_version = '1.4.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven{
url "https://dl.bintray.com/google/tensorflow/"
}
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.13'
compile group: 'com.rometools', name: 'rome', version: '1.15.0'
compile group:'org.eclipse.swt.gtk.solaris', name: 'sparc', version: '3.3.0-v3346'
compile group: 'org.slf4j', name: 'slf4j-api', version: "1.7.30"
compile "io.ktor:ktor-client-jetty:$ktor_version"
compile 'org.nanohttpd:nanohttpd:2.3.1'
compile 'org.hibernate:hibernate-agroal:5.4.21.Final'
compile group: 'com.microsoft.azure.sdk.iot', name: 'iot-service-client', version: '1.23.0'
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.11.3'
compile group: 'org.apache.opennlp', name: 'opennlp-tools', version: '1.9.3'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.12.7'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.11.2'
implementation 'com.google.code.gson:gson:2.8.6'
compile group: 'postgresql', name: 'postgresql', version: '9.1-901-1.jdbc4'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// https://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20200518'
compile("ch.qos.logback:logback-classic:1.2.3")
compile "io.ktor:ktor-server-jetty:$ktor_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "io.ktor:ktor-server-core:$ktor_version"
compile "io.ktor:ktor-client-core:$ktor_version"
compile "io.ktor:ktor-jackson:$ktor_version"
compile "com.squareup.okhttp3:okhttp:4.9.0"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.+"
}
task stage {
dependsOn build
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
shadowJar {
baseName = 'ara-server'
classifier = null
version = null
}
// ./gradlew --scan $TASKNAME
// see https://dev.to/jmfayard/the-one-gradle-trick-that-supersedes-all-the-others-5bpg
//buildScan {
// termsOfServiceUrl = "https://gradle.com/terms-of-service"
//termsOfServiceAgree = "yes"
//}