-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
85 lines (74 loc) · 2.68 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
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
82
83
84
/*
* Copyright 2021 - 2024 the original author or authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see [http://www.gnu.org/licenses/]
*/
plugins {
id 'de.undercouch.download' version '5.4.0'
}
ext {
configProjects = [project(":today-cloud-bom"), project(":today-cloud-dependencies")]
javaProjects = subprojects - configProjects
samplesProjects = subprojects.findAll { it.path.startsWith(":today-cloud-samples") }
moduleProjects = javaProjects - samplesProjects
}
configure(allprojects) {
group = "cn.taketoday"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
if (infraVersion.endsWith("-SNAPSHOT")) {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
if (version.endsWith('-SNAPSHOT')) {
maven { url "https://repo.spring.io/snapshot" }
}
}
configurations.configureEach {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
cacheDynamicVersionsFor 0, "seconds"
}
}
}
configure([rootProject] + javaProjects) {
apply plugin: "java"
apply plugin: 'jacoco'
apply plugin: 'infra.cloud.conventions'
apply from: "${rootDir}/gradle/toolchains.gradle"
jacocoTestReport {
enabled = false
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("org.junit.platform:junit-platform-suite-api")
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("org.assertj:assertj-core")
testImplementation 'org.projectlombok:lombok'
testAnnotationProcessor("org.projectlombok:lombok")
// Pull in the latest JUnit 5 Launcher API to ensure proper support in IDEs.
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.junit.platform:junit-platform-suite-engine")
}
}
configure(moduleProjects) {
apply from: "${rootDir}/gradle/cloud-module.gradle"
}
configure(rootProject) {
description = "TODAY Cloud"
}