-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (88 loc) · 3.65 KB
/
build.gradle
File metadata and controls
101 lines (88 loc) · 3.65 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
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
93
94
95
96
97
98
99
100
101
/*
* Copyright (c) 2019 NECTEC
* National Electronics and Computer Technology Center, Thailand
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
id "org.jlleitschuh.gradle.ktlint" version "4.1.0"
}
group 'ffc.api'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
maven { url "https://dl.bintray.com/blazei/maven" }
maven { url "https://maven.google.com" }
}
sourceCompatibility = 1.8
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
dependencies {
def jettyVersion = "9.4.14.v20181114"
def jerseyVersion = "2.25.1"
def entitiesVersion = "1.1.1alpha-7"
compile fileTree(dir: 'libs', include: ['*.jar'])
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.eclipse.jetty:jetty-server:$jettyVersion"
compile "org.eclipse.jetty:jetty-servlet:$jettyVersion"
compile "org.eclipse.jetty:jetty-http:$jettyVersion"
compile "org.glassfish.jersey.containers:jersey-container-servlet-core:$jerseyVersion"
compile "org.glassfish.jersey.containers:jersey-container-jetty-servlet:$jerseyVersion"
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jerseyVersion"
compile 'org.apache.logging.log4j:log4j-core:2.11.1'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.11.1'
compile "org.mongodb:mongo-java-driver:3.6.3"
compile "args4j:args4j:2.33"
compile "com.google.code.gson:gson:2.8.1"
compile 'com.google.firebase:firebase-admin:5.11.0'
compile "com.github.ffc-nectec:entities:$entitiesVersion"
compile 'com.github.ffc-nectec.genogram:genogram:1.0.0-alpha4'
compile 'com.github.piruin:jbcrypt:0.4'
compile "joda-time:joda-time:2.9.9"
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1'
compile 'com.marcelkliemannel:kotlin-onetimepassword:1.0.0'
testImplementation "com.github.kstyrc:embedded-redis:0.6"
testImplementation "de.bwaldvogel:mongo-java-server:1.18.0"
testImplementation "junit:junit:4.12"
testImplementation "org.amshove.kluent:kluent:1.48"
testImplementation "org.mockito:mockito-core:2.19.0"
testImplementation "org.glassfish.jersey.test-framework:jersey-test-framework-core:$jerseyVersion"
testImplementation "org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:$jerseyVersion"
}
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean
sourceSets {
main.java.srcDirs += 'src/main/kotlin/'
test.java.srcDirs += 'src/test/kotlin/'
}
jar {
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
archiveName = "${project.name}.jar"
destinationDir = file("$rootDir/build/bin")
manifest { attributes 'Main-Class': 'ffc.airsync.api.FFCApiServerKt' }
exclude 'META-INF/*.RSA'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE*'
exclude 'META-INF/LICENSE*'
exclude 'about.html'
}