-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
51 lines (44 loc) · 997 Bytes
/
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
/**
* Author: ngoanh2n
*/
buildscript {
apply {
from(file("gradle/helpers.gradle"))
}
}
allprojects {
setGroup("com.github.ngoanh2n")
setVersion("1.5.0")
repositories {
mavenCentral()
maven { setUrl("https://plugins.gradle.org/m2/") }
}
}
subprojects {
apply {
plugin("java")
plugin("base")
plugin("idea")
plugin("signing")
plugin("java-library")
plugin("maven-publish")
from(config.test)
from(config.compilation)
from(config.publication)
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")
}
}