-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
81 lines (64 loc) · 2.28 KB
/
Copy pathbuild.gradle
File metadata and controls
81 lines (64 loc) · 2.28 KB
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
77
78
79
80
81
import com.nubeiot.buildscript.ProjectUtils
plugins {
id "eclipse"
id "idea"
id "java-test-fixtures"
id "org.sonarqube" apply false
id "net.ltgt.apt" apply false
}
apply from: "buildSrc/dependencies.gradle"
ext {
baseName = "nubeio"
}
defaultTasks 'clean', 'jooq', 'build'
group = 'com.nubeiot'
allprojects {
repositories project.repos
configurations {
providedRuntime
}
version = project.version + (!project.semanticVersion?.trim() ? "" : ("-" + project.semanticVersion?.trim()))
project.ext.computeBaseName = { -> ProjectUtils.computeBaseName(project) }
project.ext.loadSecretProps = { f -> ProjectUtils.loadSecretProps(project, f) }
}
subprojects {
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "maven"
apply plugin: "java-library-distribution"
apply plugin: "java-test-fixtures"
apply plugin: "jacoco"
apply plugin: "net.ltgt.apt"
group = ProjectUtils.computeGroup(project)
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
compileOnly project.deps.lombok
annotationProcessor project.deps.lombok
testImplementation project.deps.tests.junit5Api
testImplementation project.deps.tests.junit5Engine
testImplementation project.deps.tests.junit5Vintage
testCompileOnly project.deps.lombok
testAnnotationProcessor project.deps.lombok
}
test {
useJUnitPlatform()
}
//TODO docker
// task dockerBuild(type: DockerBuildTask) {
// javaVersion = ProjectUtils.extraProp(project, "javaVersion", "8u265")
// javaEdition = JavaEdition.valueOf(ProjectUtils.extraProp(project, "javaEdition", JavaEdition.OPENJDK.name()))
// javaType = JavaType.valueOf(ProjectUtils.extraProp(project, "javaType", JavaType.JRE.name()))
// vcsBranch = ProjectUtils.extraProp(project, "vcsBranch", "")
// }
apply from: "$rootDir/buildSrc/generated.gradle"
apply from: "$rootDir/buildSrc/javadoc.gradle"
apply from: "$rootDir/buildSrc/bundle.gradle"
apply from: "$rootDir/buildSrc/nexus.gradle"
apply from: "$rootDir/buildSrc/misc.gradle"
}
apply from: "buildSrc/global.gradle"
apply from: "buildSrc/sonar.gradle"