-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (65 loc) · 2.21 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
allprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'maven'
group = 'com.yhh'
version = '1.0-SNAPSHOT'
description = "java project for study"
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "http://central.maven.org/maven2/" }
maven { url "https://maven2.pavlab.msl.ubc.ca/" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://repo1.maven.org/maven2" }
mavenCentral()
}
idea {
module {
downloadSources = true
}
}
// configurations {
// compile.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
// }
dependencies {
compile group: 'junit', name: 'junit', version: junit_version
compile group: 'org.projectlombok', name: 'lombok', version: lombok_version
compile group: 'com.google.guava', name: 'guava', version: guava_version
compile group: 'org.scala-lang', name: 'scala-library', version: scala_version
testCompile(group: 'org.scalatest', name: 'scalatest_2.12', version: scalatest_version) {
exclude(module: 'scala-library')
}
testCompile(group: 'org.scalactic', name: 'scalactic_2.12', version: scalatest_version) {
exclude(module: 'scala-library')
}
testCompile group: 'org.openjdk.jmh', name: 'jmh-core', version: jmh_version
testCompile group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: jmh_version
}
}
subprojects {
sourceSets {
main {
scala {
srcDirs = ['src/main/scala', 'src/main/java']
}
java {
srcDirs = []
}
}
test {
scala {
srcDirs = ['src/test/scala/', 'src/test/java/']
include '**/*Test.java'
include '**/*Helper.java'
exclude '**/*IT.java'
exclude '**/*Tests.java'
}
}
}
}