Browse Source

Add an API directory.

This is for the interfaces/trivial implementation classes that
DMDirc plugins can interact with. Eventually plugins will build
against the API instead of the DMDirc client itself, which will
allow for remote/detachable clients (amongst other things).
pull/705/head
Chris Smith 7 years ago
parent
commit
0511e076b5
5 changed files with 55 additions and 3 deletions
  1. 4
    0
      .gitignore
  2. 49
    0
      api/build.gradle
  3. 0
    0
      api/src/main/java/com/dmdirc/events/DisplayProperty.java
  4. 1
    0
      build.gradle
  5. 1
    3
      settings.gradle

+ 4
- 0
.gitignore View File

@@ -8,6 +8,10 @@
8 8
 /*.key
9 9
 /.gradle
10 10
 
11
+/api/build
12
+/api/src/*/generated
13
+/api/src/*/generated_tests
14
+
11 15
 # Generated files created by IDEA
12 16
 /src/*/generated
13 17
 /src/*/generated_tests

+ 49
- 0
api/build.gradle View File

@@ -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
+}

src/main/java/com/dmdirc/events/DisplayProperty.java → api/src/main/java/com/dmdirc/events/DisplayProperty.java View File


+ 1
- 0
build.gradle View File

@@ -44,6 +44,7 @@ dependencies {
44 44
     bundle group: 'com.google.guava', name:'guava', version: '19.0'
45 45
     bundle group: 'net.engio', name: 'mbassador', version: '1.2.4.2'
46 46
     bundle group: 'com.google.code.gson', name: 'gson', 'version': '2.5'
47
+    bundle group: 'com.dmdirc', name: 'api', version: '+', changing: true
47 48
     bundle group: 'com.dmdirc', name: 'util', version: '+', changing: true
48 49
     bundle group: 'com.dmdirc', name: 'parser-common', version: '+', changing: true
49 50
 

+ 1
- 3
settings.gradle View File

@@ -1,3 +1 @@
1
-include 'modules:util'
2
-include 'modules:parser'
3
-include 'modules:plugins'
1
+include 'api'

Loading…
Cancel
Save