-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
89 lines (75 loc) · 2.69 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
/*
*
* * Copyright 2020 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 'com.palantir.git-version' version '0.11.0'
id "org.jetbrains.kotlin.jvm" version "1.3.21"
}
group 'ffc.airsync'
version = gitVersion()
ext {
entitiesVersion = '1.1.1alpha-8'
jdbiVersion = "3.14.1"
h2Version = '1.4.197'
}
allprojects {
apply plugin: 'idea'
repositories {
maven { url 'https://jitpack.io' }
mavenCentral()
google()
jcenter()
maven { url "https://dl.bintray.com/blazei/maven" }
}
}
subprojects {
version = rootProject.version
group = rootProject.group
apply plugin: 'kotlin'
sourceCompatibility = 1.8
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
dependencies {
compile "com.github.ffc-nectec:entities:1.1.1alpha-8"
compile "com.github.lionants02:kotlin-util:0.3"
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.1'
compile 'org.apache.logging.log4j:log4j-core:2.11.1'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.11.1'
compile 'org.apache.logging.log4j:log4j-api-kotlin:1.0.0'
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.21"
testImplementation "junit:junit:4.12"
testImplementation "org.amshove.kluent:kluent:1.34"
testImplementation "com.wix:wix-embedded-mysql:4.6.1"
testImplementation "ch.vorburger.mariaDB4j:mariaDB4j:2.4.0"
}
configurations { ktlint }
dependencies { ktlint "com.github.shyiko:ktlint:0.31.0" }
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "src/**/*.kt"
}
check.dependsOn ktlint
task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "-F", "src/**/*.kt"
}
}