forked from aws/api-models-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
80 lines (71 loc) · 2.03 KB
/
build.gradle.kts
File metadata and controls
80 lines (71 loc) · 2.03 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
import org.jreleaser.model.Active
plugins {
`java-platform`
`maven-publish`
alias(libs.plugins.jreleaser)
id("api-models-aws.publishing-conventions")
}
description = "This module contains the Smithy model (JSON AST) for all AWS services."
extra["displayName"] = "Software :: Amazon :: API :: Models"
subprojects {
afterEvaluate {
apply {
plugin("api-models-aws.model-conventions")
}
}
}
// Configuration for the "all" package (which depends on all the subprojects)
dependencies {
constraints {
subprojects.forEach {
api(it)
}
}
}
tasks {
build {
mustRunAfter(clean)
}
}
/*
* Jreleaser (https://jreleaser.org) config.
*/
jreleaser {
dryrun = false
// Used for creating a tagged release, uploading files and generating changelog.
// In the future we can set this up to push release tags to GitHub, but for now it's
// set up to do nothing.
// https://jreleaser.org/guide/latest/reference/release/index.html
release {
generic {
enabled = true
skipRelease = true
}
}
// Used to announce a release to configured announcers.
// https://jreleaser.org/guide/latest/reference/announce/index.html
announce {
active = Active.NEVER
}
// Signing configuration.
// https://jreleaser.org/guide/latest/reference/signing.html
signing {
active = Active.ALWAYS
armored = true
}
// Configuration for deploying to Maven Central.
// https://jreleaser.org/guide/latest/examples/maven/maven-central.html#_gradle
deploy {
maven {
mavenCentral {
create("maven-central") {
active = Active.ALWAYS
url = "https://central.sonatype.com/api/v1/publisher"
stagingRepository(rootProject.layout.buildDirectory.dir("staging").get().asFile.path)
maxRetries = 210
retryDelay = 60
}
}
}
}
}