@@ -18,7 +18,7 @@ import org.jreleaser.model.Active
18
18
19
19
plugins {
20
20
java
21
- alias(libs.plugins.jreleaser) apply false
21
+ alias(libs.plugins.jreleaser)
22
22
}
23
23
24
24
// Load the Smithy version from VERSION.
@@ -53,54 +53,43 @@ afterEvaluate {
53
53
}
54
54
}
55
55
56
- // We're using JReleaser in the smithy-cli subproject, so we want to have a flag to control
57
- // which JReleaser configuration to use to prevent conflicts
58
- if (project.hasProperty(" release.main" )) {
59
- apply (plugin = " org.jreleaser" )
56
+ configure<JReleaserExtension > {
57
+ dryrun = false
60
58
61
- // Workaround for https://github.com/jreleaser/jreleaser/issues/1492
62
- tasks.register(" clean" )
63
-
64
- configure<JReleaserExtension > {
65
- dryrun = false
66
-
67
- // Used for creating and pushing the version tag, but this configuration ensures that
68
- // an actual GitHub release isn't created (since the CLI release does that)
69
- release {
70
- github {
71
- skipRelease = true
72
- tagName = " {{projectVersion}}"
73
- }
59
+ release {
60
+ generic {
61
+ skipTag = true
74
62
}
63
+ }
75
64
76
- // Used to announce a release to configured announcers.
77
- // https://jreleaser.org/guide/latest/reference/announce/index.html
78
- announce {
79
- active = Active .NEVER
80
- }
65
+ // Used to announce a release to configured announcers.
66
+ // https://jreleaser.org/guide/latest/reference/announce/index.html
67
+ announce {
68
+ active = Active .NEVER
69
+ }
81
70
82
- // Signing configuration.
83
- // https://jreleaser.org/guide/latest/reference/signing.html
84
- signing {
85
- active = Active .ALWAYS
86
- armored = true
87
- }
71
+ // Signing configuration.
72
+ // https://jreleaser.org/guide/latest/reference/signing.html
73
+ signing {
74
+ active = Active .ALWAYS
75
+ armored = true
76
+ }
88
77
89
- // Configuration for deploying to Maven Central.
90
- // https://jreleaser.org/guide/latest/examples/maven/maven-central.html#_gradle
91
- deploy {
92
- maven {
93
- nexus2 {
94
- create(" maven-central" ) {
95
- active = Active .ALWAYS
96
- url = " https://aws.oss.sonatype.org/service/local"
97
- snapshotUrl = " https://aws.oss.sonatype.org/content/repositories/snapshots"
98
- closeRepository = true
99
- releaseRepository = true
100
- stagingRepository(stagingDir().get().asFile.path)
101
- }
78
+ // Configuration for deploying to Maven Central.
79
+ // https://jreleaser.org/guide/latest/examples/maven/maven-central.html#_gradle
80
+ deploy {
81
+ maven {
82
+ nexus2 {
83
+ create(" maven-central" ) {
84
+ active = Active .ALWAYS
85
+ url = " https://aws.oss.sonatype.org/service/local"
86
+ snapshotUrl = " https://aws.oss.sonatype.org/content/repositories/snapshots"
87
+ closeRepository = true
88
+ releaseRepository = true
89
+ stagingRepository(stagingDir().get().asFile.path)
102
90
}
103
91
}
104
92
}
105
93
}
106
94
}
95
+
0 commit comments