Pārlūkot izejas kodu

Initial work on a client gradle build script

Change-Id: If8f1b3f0e2df28cfa008e604ed045e186a6b1561
Reviewed-on: http://gerrit.dmdirc.com/3852
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
pull/1/head
Chris Smith 9 gadus atpakaļ
vecāks
revīzija
d22c8f0d86
3 mainītis faili ar 76 papildinājumiem un 0 dzēšanām
  1. 2
    0
      .gitignore
  2. 72
    0
      build.gradle
  3. 2
    0
      settings.gradle

+ 2
- 0
.gitignore Parādīt failu

@@ -45,3 +45,5 @@ __history
45 45
 /.idea/workspace.xml
46 46
 /.idea/uiDesigner.xml
47 47
 /atlassian-ide-plugin.xml
48
+/.gradle
49
+/*/build

+ 72
- 0
build.gradle Parādīt failu

@@ -0,0 +1,72 @@
1
+apply plugin: 'java'
2
+
3
+configurations {
4
+    bundle
5
+
6
+    compile {
7
+        extendsFrom bundle
8
+    }
9
+}
10
+
11
+sourceSets {
12
+    main {
13
+        java {
14
+            srcDir 'src'
15
+        }
16
+        resources {
17
+            srcDir 'res'
18
+        }
19
+   }
20
+   test {
21
+       java {
22
+           srcDir 'test'
23
+       }
24
+   }
25
+}
26
+
27
+sourceCompatibility = 1.7
28
+targetCompatibility = 1.7
29
+
30
+
31
+repositories {
32
+    mavenCentral()
33
+    maven {
34
+        url 'http://nexus.dmdirc.com/nexus/content/repositories/thirdparty/'
35
+    }
36
+}
37
+
38
+dependencies {
39
+    compile group: 'com.google.code.findbugs', name: 'jsr305', version: '2.+'
40
+    compile group: 'com.squareup.dagger', name: 'dagger-compiler', version: '1.2.1'
41
+    bundle group: 'com.squareup.dagger', name: 'dagger', version: '1.2.1'
42
+    bundle group: 'com.esotericsoftware.yamlbeans', name: 'yamlbeans', version: '1.+'
43
+    bundle group: 'com.brsanthu', name: 'migbase64', version: '2.2'
44
+    bundle group: 'net.kencochrane.raven', name: 'raven', version: '4.+'
45
+    bundle group: 'com.google.guava', name:'guava', version: '17.+'
46
+    bundle group: 'net.engio', name: 'mbassador', version: '1.1.10'
47
+    bundle project(':modules:util')
48
+    bundle project(':modules:parser')
49
+}
50
+
51
+subprojects {
52
+    apply plugin: 'java'
53
+
54
+    sourceSets {
55
+        main {
56
+        java {
57
+            srcDir 'src'
58
+        }
59
+        resources {
60
+            srcDir 'res'
61
+        }
62
+       }
63
+       test {
64
+           java {
65
+           srcDir 'test'
66
+           }
67
+       }
68
+    }
69
+
70
+    sourceCompatibility = 1.7
71
+    targetCompatibility = 1.7
72
+}

+ 2
- 0
settings.gradle Parādīt failu

@@ -0,0 +1,2 @@
1
+include 'modules:util'
2
+include 'modules:parser'

Notiek ielāde…
Atcelt
Saglabāt