forked from otto-de/edison-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (73 loc) · 2.33 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
85
86
87
88
89
90
apply plugin: 'idea'
apply plugin: 'eclipse'
apply from: 'dependencies.gradle'
buildscript {
ext.springBootVersion = "1.4.0.RELEASE"
ext.springVersion = "4.3.2.RELEASE"
repositories {
maven { url "http://repo.spring.io/libs-snapshot" }
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:"+springBootVersion)
}
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-snapshot" }
}
idea {
project {
languageLevel = '1.8'
}
}
eclipse {
classpath {
//customizing the classes output directory:
defaultOutputDir = file('build/bin')
//default settings for downloading sources and Javadoc:
downloadSources = true
downloadJavadoc = false
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'project-report'
apply plugin: 'signing'
group = 'de.otto.edison'
// Major Release: X.0.0: Breaking Changes
// Minor Release: 0.X.0: Additional Features, updates from minor releases in Spring
// Micro Release: 0.0.X: Bugfixes, non-breaking changes, updates from micro releases in Spring
// DO NOT FORGET TO DOCUMENT CHANGES IN HISTORY.MD
version = '0.77.0'
repositories {
mavenCentral()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
jar {
manifest.attributes provider: 'gradle'
}
test {
// pass -Dspring.profiles.active=local and other system properties to the test task
systemProperties = System.properties
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
println "Test Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
}
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task allDeps(type: DependencyReportTask) {}
}