-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (41 loc) · 1.16 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
apply plugin: 'java'
jar {
baseName = 'iriska'
version = '0.1'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile('com.maslick.ai:klassy:0.1.8')
}
task min(type: Jar, dependsOn: classes) {
baseName = jar.baseName + "-min-" + jar.version
from sourceSets.main.output
include '**/si/ijs/maslick/ai/iriska/**/**'
includeEmptyDirs = false
}
task minSrc(type: Jar, dependsOn: classes) {
baseName = jar.baseName + "min-" + jar.version + "-sources"
from sourceSets.main.allSource
include '**/si/ijs/maslick/ai/iriska/**/**'
includeEmptyDirs = false
}
task all(type: Jar, dependsOn: classes) {
baseName = jar.baseName + "-all-" + jar.version
from sourceSets.main.output
include '**/'
includeEmptyDirs = false
}
task allSrc(type: Jar, dependsOn: classes) {
baseName = jar.baseName + "-all-" + jar.version + "-sources"
from sourceSets.main.allSource
include '**/'
from sourceSets.test.allSource
include '**/'
includeEmptyDirs = false
}
build.finalizedBy(["min", "minSrc", "all", "allSrc"])