forked from otto-de/edison-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
173 lines (154 loc) · 5.52 KB
/
build.gradle
File metadata and controls
173 lines (154 loc) · 5.52 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java'
alias(libs.plugins.jreleaser)
alias(libs.plugins.spring.boot)
}
jreleaser {
release {
github {
update {
enabled = true
}
}
}
project {
snapshot {
fullChangelog = true
}
}
gitRootSearch = true
signing {
active = 'ALWAYS'
armored = true
}
deploy {
maven {
github {
app {
snapshotSupported = true
active = 'ALWAYS'
url = "https://maven.pkg.github.com/otto-de/edison-microservice"
stagingRepository('build/staging-deploy')
}
}
mavenCentral {
app {
snapshotSupported = false
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
stagingRepository('build/staging-deploy')
// Time to wait between state transition checks, in seconds.
// Defaults to `10`.
//
retryDelay = 10
// Maximum number of attempts to verify state transition.
// Defaults to `60`.
// Maven Central release can currently take up to 40 minutes, so we increased this to 240
//
maxRetries = 240
}
}
}
}
}
// USE SEMANTIC VERSIONING AS SPECIFIED HERE: http://semver.org/spec/v2.0.0.html
//
// Major Release: X.0.0-RELEASE: Breaking Changes. Should be avoided if possible, or planned for future release.
// Minor Release: 0.X.0-RELEASE: Additional Features, updates from minor releases in Spring
// Micro Release: 0.0.X-RELEASE: Bugfixes, non-breaking changes, updates from micro releases in Spring
//
// DO NOT FORGET TO DOCUMENT CHANGES IN CHANGELOG.md
//
// Publish artifacts to Sonatype's Maven Central by executing the release.sh script.
// This adds a GitHub release for every new release: https://github.com/otto-de/edison-microservice/releases
//
//
def edison_version = "4.0.2-SNAPSHOT" // <--- SET AND UPDATE EDISON VERSION HERE
//
//
//
repositories {
mavenCentral()
}
apply from: "${rootDir}/gradle/maven.gradle"
group = 'de.otto.edison'
version = edison_version
subprojects {
version = parent.version
group = parent.group
repositories {
mavenCentral()
mavenLocal()
}
if (project.name == 'edison-platform') {
println("Configuring edison-platform project...")
apply plugin: 'maven-publish'
} else {
apply plugin: 'eclipse'
apply plugin: 'project-report'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'io.spring.dependency-management'
task allDeps(type: DependencyReportTask) {}
apply from: "${rootDir}/gradle/idea.gradle"
apply from: "${rootDir}/gradle/compile.gradle"
apply from: "${rootDir}/gradle/test.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
apply from: "${rootDir}/gradle/maven.gradle"
apply from: "${rootDir}/gradle/signing.gradle"
dependencies {
implementation platform(project(":edison-platform"))
compileOnly "org.springframework.boot:spring-boot-configuration-processor"
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
java {
withJavadocJar()
withSourcesJar()
}
if (!name.contains("example")) {
publishing {
publications {
mavenJava(MavenPublication) {
pom {
url = 'https://github.com/otto-de/edison-microservice'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'MediaMarco'
name = 'Marco Geweke'
email = 'marco.geweke@gmail.com'
}
developer {
id = 'gsteinacker'
name = 'Guido Steinacker'
}
}
scm {
connection = 'scm:git:https://github.com/otto-de/edison-microservice.git'
developerConnection = 'scm:git:ssh://github.com/otto-de/edison-microservice.git'
url = 'https://github.com/otto-de/edison-microservice'
}
}
}
}
repositories {
maven {
// Our settingsDirectory is the project root dir.
// We want to 'publish' to the specified dir to have the artifacts uploaded with JReleaser from that location afterwards.
url = layout.settingsDirectory.dir('build/staging-deploy')
}
}
}
}
}
}