-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (73 loc) · 2.58 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
apply from: 'gradle/allprojects.gradle'
buildscript {
ext {
kotlin_version = '1.5.0'
coroutines_version = '1.4.2'
jvm_version = '1.8'
kotest_version = '4.4.3'
auto_service_version = '1.0-rc4'
java_mail_version = '1.4.7'
HikariCP_version = '3.4.5'
hocon_version = '1.0.0-RC'
jackson_version = '2.11.0'
commons_exec_version = '1.3'
fuel_ersion = '2.2.2'
oshi_version = '5.0.0'
green_mail_version = '1.5.14'
ktorm_version = '3.1.0'
mysql_connector_version = '5.1.25'
reflections_version = '0.9.12'
jwt_version = '3.4.1'
velocity_version = '2.2'
spring_version = '2.2.0.RELEASE'
shiro_version = '1.4.0'
spark_version = '2.2.3'
scala_version = '2.11'
}
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
dependencies {
implementation 'net.java.dev.jna:jna:4.2.2'
implementation 'log4j:log4j:1.2.17'
implementation 'org.slf4j:slf4j-nop:1.7.2'
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'commons-io:commons-io:1.3.2'
implementation 'com.google.guava:guava:20.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-script-runtime:$kotlin_version"
implementation 'com.xenomachina:kotlin-argparser:2.0.7'
testImplementation "io.kotest:kotest-runner-junit5-jvm:$kotest_version"
testImplementation "io.kotest:kotest-assertions-core-jvm:$kotest_version"
testImplementation "io.kotest:kotest-property-jvm:$kotest_version"
testImplementation 'ch.vorburger.mariaDB4j:mariaDB4j:2.4.0'
testImplementation 'com.nhaarman:mockito-kotlin:1.6.0'
testImplementation 'io.mockk:mockk:1.11.0'
}
sourceCompatibility = jvm_version
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = jvm_version
}
}
}