-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (36 loc) · 887 Bytes
/
Copy pathbuild.gradle
File metadata and controls
43 lines (36 loc) · 887 Bytes
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
plugins {
id 'idea'
id 'eclipse'
}
configure(allprojects) { p ->
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group 'daggerok'
version '0.0.1'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
// fix jar archive
jar {
exclude "META-INF/*.MF", "META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA"
from {
configurations.compile.collect { file ->
file.isDirectory() ? file : zipTree(file)
}
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
google()
}
// fix task execution order:
[clean, assemble, test, build].each { targetTask ->
def targetName = targetTask.name
gradle.includedBuilds.collect({ it?.task(":$targetName") }).each { ref ->
targetTask.dependsOn ref
targetTask.shouldRunAfter ref
}
}
}