-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (48 loc) · 1.17 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
52
53
54
/**
* Author: ngoanh2n
*/
buildscript {
apply {
from(file("gradle/helpers.gradle"))
}
apply {
from(bscript.repositories) to(getBuildscript())
from(bscript.dependencies) to(getBuildscript())
}
}
allprojects {
setGroup(property("artifact.group"))
setVersion(property("artifact.version"))
}
subprojects {
apply {
plugin("java")
plugin("base")
plugin("idea")
plugin("signing")
plugin("java-library")
plugin("maven-publish")
plugin("io.qameta.allure")
plugin("io.freefair.aspectj.post-compile-weaving")
from(config.test)
from(config.allure)
from(config.compilation)
from(config.publication)
from(config.repositories)
from(config.dependencies)
}
idea {
module {
downloadSources = true
}
}
getTasks().clean.doFirst {
delete(getProject().file("out"))
delete(getRootProject().files("build"))
}
getTasks().build.configure {
getDependsOn().removeIf { task -> (task == "check") }
assemble.dependsOn("clean")
dependsOn("publishToMavenLocal")
}
}