forked from Instagram/ig-json-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (42 loc) · 1.49 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
buildscript {
}
apply plugin: 'groovy'
subprojects {
repositories {
mavenCentral()
}
}
task processorJar(type: Jar, dependsOn: classes) {
from files( { project(':javawriter').sourceSets.main.output.classesDir } )
from files( { project(':common').sourceSets.main.output.classesDir } )
from files( { project(':util').sourceSets.main.output.classesDir } )
from files( { project(':processor').sourceSets.main.output.classesDir } )
baseName 'processor'
}
task runtimeJar(type: Jar, dependsOn: classes) {
from files( { project(':common').sourceSets.main.output.classesDir } )
baseName 'runtime'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from files( { project(':javawriter').sourceSets.main.allSource } )
from files( { project(':common').sourceSets.main.allSource } )
from files( { project(':util').sourceSets.main.allSource } )
from files( { project(':processor').sourceSets.main.allSource } )
}
task myJavadocs(type: Javadoc) {
source files( { project(':javawriter').sourceSets.main.allSource } )
source files( { project(':common').sourceSets.main.allSource } )
source files( { project(':util').sourceSets.main.allSource } )
source files( { project(':processor').sourceSets.main.allSource } )
}
task javadocJar(type: Jar, dependsOn: myJavadocs) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives processorJar
archives runtimeJar
archives sourcesJar
archives javadocJar
}