-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (48 loc) · 1.53 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
buildscript {
ext.kotlin_version = '1.2.31'
ext.spring_version = '5.0.8.RELEASE'
ext.logback_version = '1.1.3'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'java'
}
group 'tom.scratch'
version '1.0-SNAPSHOT'
apply plugin: 'kotlin'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
// log
compile "org.slf4j:slf4j-api:1.7.14"
compile "ch.qos.logback:logback-core:$logback_version"
compile "ch.qos.logback:logback-classic:$logback_version"
// spring
compile "org.springframework:spring-core:$spring_version"
compile "org.springframework:spring-beans:$spring_version"
compile "org.springframework:spring-context:$spring_version"
compile "org.springframework:spring-jdbc:$spring_version"
// testing
compile 'org.jmockit:jmockit:1.41'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile "org.springframework:spring-test:$spring_version"
// mybatis
compile group: 'org.mybatis', name: 'mybatis', version: '3.4.6'
compile group: 'org.mybatis', name: 'mybatis-spring', version: '1.3.2'
compile group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.5.0'
testCompile group: 'org.hsqldb', name: 'hsqldb', version: '2.4.1'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}