-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
36 lines (31 loc) · 1.17 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
plugins {
id "io.spring.security.release" version "1.0.1"
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
}
group = 'org.springframework.experimental.boot'
springRelease {
repositoryOwner = "spring-projects-experimental"
repositoryName = "spring-boot-testjars"
weekOfMonth = 2
dayOfWeek = 1
referenceDocUrl = "https://docs.spring.io/spring-boot-testjars/reference/{version}/index.html"
apiDocUrl = "https://docs.spring.io/spring-boot-testjars/docs/{version}/api/"
replaceSnapshotVersionInReferenceDocUrl = true
releaseVersionPrefix = "v"
}
nexusPublishing {
repositories {
ossrh {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
stagingProfileId = '2a29ff48cbb4b'
}
}
}
tasks.register('finalizeDeployArtifacts') {
group = 'Publishing'
description = 'Automatically close and release staging repositories when required based on the version'
}
if (!project.version.contains('-')) {
project.tasks.finalizeDeployArtifacts.dependsOn 'closeAndReleaseOssrhStagingRepository'
}