-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (94 loc) · 3.15 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version = '0.0.1'
buildscript {
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
url "http://techshroom.github.io/downloads/maven"
}
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
dependencies {
classpath group: 'com.techshroom', name: 'Aversion', version: '1.0.1-SNAPSHOT'
}
}
apply plugin: 'aversion-apt'
apply plugin: 'aversion-maven'
apply plugin: 'aversion-util'
apply plugin: 'java'
apply plugin: 'eclipse'
util {
javaVersion = '1.8'
}
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
configurations.all {
resolutionStrategy {
// fail eagerly on version conflict (includes transitive dependencies)
// e.g. multiple different versions of the same dependency (group and name are equal)
failOnVersionConflict()
// force certain versions of dependencies (including transitive)
force 'com.google.auto.service:auto-service:1.0-SNAPSHOT', 'com.google.guava:guava:18.0',
'com.google.dagger:dagger:2.0', 'com.google.auto:auto-common:0.4'
cacheDynamicVersionsFor 10, 'minutes'
// don't cache changing modules at all
cacheChangingModulesFor 0, 'seconds'
}
}
sourceSets {
main.java {
srcDir 'src/generated/java'
}
main.resources {
srcDir 'src/generated/resources'
}
// define tools
tools {}
}
configurations.toolsCompile {
extendsFrom configurations.compile
}
eclipse {
classpath {
plusConfigurations += [ configurations.toolsCompile ]
}
}
task runTools(dependsOn: compileToolsJava) {
}
eclipseClasspath.dependsOn(runTools)
compileJava.dependsOn(runTools)
dependencies {
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.0.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.0.2'
compile group: 'net.sf.jopt-simple', name: 'jopt-simple', version: '4.7'
compile group: 'com.google.code.gson', name: 'gson', version: '2.3'
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '1.3.9'
compile group: 'com.flowpowered', name: 'flow-math', version: '1.0.2-SNAPSHOT'
toolsCompile group: 'com.squareup', name: 'javapoet', version: '1.4.0-SNAPSHOT'
addAPTReqWComp group: 'com.google.guava', name: 'guava', version: '18.0'
addAPT group: 'com.google.auto.factory', name: 'auto-factory', version: '1.0-SNAPSHOT'
addAPT group: 'com.google.auto.service', name: 'auto-service', version: '1.0-SNAPSHOT'
addAPT group: 'com.google.auto.value', name: 'auto-value', version: '1.2-SNAPSHOT'
addAPTReq name: 'aopalliance'
addAPTReq name: 'asm'
addAPTReq name: 'auto-value'
addAPTReq name: 'auto-common'
addAPTReq name: 'cglib'
addAPTReq name: 'commons-collections'
addAPTReq name: 'commons-lang'
addAPTReq name: 'dagger'
addAPTReq name: 'javawriter'
addAPTReq name: 'javax.inject'
addAPTReq name: 'velocity'
testCompile group: 'junit', name: 'junit', version: '4.+'
}