forked from microservices-patterns/ftgo-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (42 loc) · 1.54 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
classpath "com.avast.gradle:gradle-docker-compose-plugin:$dockerComposePluginVersion"
classpath "org.springframework.cloud:spring-cloud-contract-gradle-plugin:$springCloudContractDependenciesVersion"
classpath "com.avast.gradle:gradle-docker-compose-plugin:$dockerComposePluginVersion"
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
}
}
plugins {
id "com.github.ben-manes.versions" version "0.20.0"
}
apply plugin: WaitForMySqlPlugin
subprojects {
apply plugin: "java"
// TODO apply plugin: 'pmd'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
group = "net.chrisrichardson.ftgo"
repositories {
eventuateMavenRepoUrl.split(',').each { repoUrl -> maven { url repoUrl } }
mavenCentral()
jcenter()
maven {
url 'https://jitpack.io'
}
maven {
url "${project.rootDir}/build/repo"
}
}
}
task buildContracts(type: GradleBuild) {
tasks = subprojects.collect { it.name }.findAll { it.endsWith("-contracts") }.collect { ":" + it + ":publish"}
}
task compileAll(type: GradleBuild) {
tasks = ["testClasses", "compileIntegrationTestJava", "compileComponentTestJava"]
}