-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
50 lines (43 loc) · 1.27 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
apply plugin: 'idea'
apply plugin: 'maven'
allprojects {
group 'com.github.sofn'
version '1.0-SNAPSHOT'
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
}
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
if (it.name != "trpc-registry") {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
testCompile group: 'junit', name: 'junit', version: "${junitVersion}"
testCompile group: 'org.assertj', name: 'assertj-core', version: "${assertjVersion}"
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: "${slf4jVersion}"
testCompile group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
testCompile group: 'org.mockito', name: 'mockito-core', version: "${mockitoVersion}"
}
}
}
//idea插件会默认下载source和doc文件
idea {
module {
downloadJavadoc = false
downloadSources = false
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
//执行gradle wrapper自动生成gradlew脚本及配置
task wrapper(type: Wrapper) {
gradleVersion = '3.0'
}