-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
67 lines (53 loc) · 1.51 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
apply plugin: 'com.github.ben-manes.versions'
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
// Group Id
group 'com.github.longkerdandy'
// Version
version '1.1.0.Beta1-SNAPSHOT'
// JDK
sourceCompatibility = 1.8
// Encoding
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
// Maven Repository
repositories {
mavenCentral();
}
// Dependencies
dependencies {
// apache commons
compile 'org.apache.commons:commons-lang3:3.4'
compile 'commons-configuration:commons-configuration:1.10'
// logger
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'ch.qos.logback:logback-core:1.1.7'
compile 'ch.qos.logback:logback-classic:1.1.7'
// junit
testCompile 'junit:junit:4.12'
// mock
compile 'org.mockito:mockito-all:1.10.19'
compile 'org.easymock:easymock:3.4'
}
}
// gradle version plugin
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
}
}
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}