-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
54 lines (48 loc) · 1.41 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
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
jcenter()
}
}
dependencies {
classpath 'com.diffplug.spotless:spotless-plugin-gradle:3.10.0'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.4.RELEASE'
}
}
subprojects {
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'com.diffplug.gradle.spotless'
spotless {
java {
indentWithSpaces(4)
removeUnusedImports()
}
}
}
configure([project(':hydra-client'), project(':hydra-common'), project(':hydra-gradle-core'),
project('hydra-gradle-plugin'), project('hydra-android-gradle-plugin')]) {
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc
}
}
configure (project(':hydra-server')) {
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'war'
bootRun {
// support passing -Dsystem.property=value to bootRun task
systemProperties = System.properties
systemProperties['log4j.configuration'] = "$rootDir/deployment/prod/log4j.properties"
sourceResources sourceSets.main
}
}
apply from: 'build.publication.gradle'