-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
76 lines (64 loc) · 2.23 KB
/
build.gradle.kts
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
plugins {
id(ZeroLibs.Plugins.docker) version ZeroLibs.Version.plugin
id(ZeroLibs.Plugins.root) version ZeroLibs.Version.plugin apply false
id(PluginLibs.nexusStaging) version PluginLibs.Version.nexusStaging
}
apply(plugin = ZeroLibs.Plugins.root)
project.ext.set("baseName", "qwe-iot")
allprojects {
group = "io.github.zero88.qwe"
repositories {
mavenLocal()
maven { url = uri("https://oss.sonatype.org/content/groups/public/") }
maven { url = uri("https://maven.mangoautomation.net/repository/ias-snapshot/") }
maven { url = uri("https://maven.mangoautomation.net/repository/ias-release/") }
mavenCentral()
jcenter()
}
}
subprojects {
apply(plugin = "eclipse")
apply(plugin = "idea")
apply(plugin = ZeroLibs.Plugins.docker)
afterEvaluate {
if (setOf("service").contains(project.name)) {
project.tasks.forEach { it.enabled = false }
}
}
docker {
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
compileOnly(UtilLibs.lombok)
annotationProcessor(UtilLibs.lombok)
testImplementation(TestLibs.junit5Api)
testImplementation(TestLibs.junit5Engine)
testImplementation(TestLibs.junit5Vintage)
testImplementation(TestLibs.jsonAssert)
testCompileOnly(UtilLibs.lombok)
testAnnotationProcessor(UtilLibs.lombok)
}
qwe {
zero88.set(true)
publishingInfo {
enabled.set(true)
homepage.set("https://github.com/zero88/qwe-iot-gateway")
license {
name.set("The Apache License, Version 2.0")
url.set("https://github.com/zero88/qwe-iot-gateway/blob/master/LICENSE")
}
scm {
connection.set("scm:git:git://git@github.com:zero88/qwe-iot-gateway.git")
developerConnection.set("scm:git:ssh://git@github.com:zero88/qwe-iot-gateway.git")
url.set("https://github.com/zero88/qwe-iot-gateway")
}
}
}
}
nexusStaging {
packageGroup = "io.github.zero88"
username = project.property("nexus.username") as String?
password = project.property("nexus.password") as String?
}