|
@@ -0,0 +1,49 @@
|
|
1
|
+plugins {
|
|
2
|
+ id 'java'
|
|
3
|
+ id 'findbugs'
|
|
4
|
+ id 'pmd'
|
|
5
|
+ id 'idea'
|
|
6
|
+}
|
|
7
|
+
|
|
8
|
+group = 'com.dmdirc'
|
|
9
|
+
|
|
10
|
+idea {
|
|
11
|
+ module {
|
|
12
|
+ sourceDirs += file('src/main/generated')
|
|
13
|
+ testSourceDirs += file('src/test/generated_tests')
|
|
14
|
+ generatedSourceDirs = [file('src/main/generated'), file('src/test/generated_tests')]
|
|
15
|
+ }
|
|
16
|
+}
|
|
17
|
+
|
|
18
|
+configurations.all {
|
|
19
|
+ resolutionStrategy.cacheDynamicVersionsFor 2, 'minutes'
|
|
20
|
+ resolutionStrategy.cacheChangingModulesFor 2, 'minutes'
|
|
21
|
+}
|
|
22
|
+
|
|
23
|
+dependencies {
|
|
24
|
+ compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
|
|
25
|
+ compile group: 'com.squareup.dagger', name: 'dagger-compiler', version: '1.2.5'
|
|
26
|
+ compile group: 'com.google.auto.value', name: 'auto-value', version: '1.2'
|
|
27
|
+
|
|
28
|
+ compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.21'
|
|
29
|
+ compile group: 'com.squareup.dagger', name: 'dagger', version: '1.2.5'
|
|
30
|
+ compile group: 'com.google.guava', name:'guava', version: '19.0'
|
|
31
|
+ compile group: 'com.dmdirc', name: 'util', version: '+', changing: true
|
|
32
|
+ compile group: 'com.dmdirc', name: 'parser-common', version: '+', changing: true
|
|
33
|
+
|
|
34
|
+ testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
35
|
+ testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
|
|
36
|
+}
|
|
37
|
+
|
|
38
|
+sourceCompatibility = 1.8
|
|
39
|
+targetCompatibility = 1.8
|
|
40
|
+
|
|
41
|
+repositories {
|
|
42
|
+ mavenCentral()
|
|
43
|
+ maven { url 'https://artifactory.dmdirc.com/artifactory/repo' }
|
|
44
|
+ maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
|
|
45
|
+}
|
|
46
|
+
|
|
47
|
+task wrapper(type: Wrapper) {
|
|
48
|
+ gradleVersion = '2.13'
|
|
49
|
+}
|