Skip to content

Commit ea7d920

Browse files
authored
fix(build): Remove unnecessary "files" section from JReleaser config (#174)
This section is not necessary for artifacts already published by the Maven publication.
1 parent d544a5f commit ea7d920

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

build-logic/src/main/kotlin/authmgr-jreleaser.gradle.kts

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,6 @@ jreleaser {
4242
copyright = "Copyright (c) ${LocalDate.now().year} Dremio"
4343
}
4444

45-
files {
46-
subprojects.forEach { project ->
47-
if (project.name !in excludedProjects) {
48-
glob {
49-
pattern.set(
50-
project.layout.buildDirectory.dir("libs").get().asFile.absolutePath + "/**.jar"
51-
)
52-
}
53-
}
54-
}
55-
}
56-
5745
signing {
5846
active.set(Active.ALWAYS)
5947
verify.set(false) // requires the GPG public key to be set up
@@ -151,10 +139,14 @@ jreleaser {
151139
content.set(
152140
"""
153141
## Try It Out
142+
154143
{{projectNameCapitalized}} is available as a Maven artifact from [Maven Central](https://central.sonatype.com/namespace/com.dremio.iceberg.authmgr).
155144
You can also download the latest version from the [GitHub Releases page]({{repoUrl}}/releases).
145+
156146
## Highlights
147+
157148
The full changelog can be found [here]({{repoUrl}}/compare/{{previousTagName}}...{{tagName}}).
149+
158150
{{changelogChanges}}
159151
{{changelogContributors}}
160152
"""
@@ -181,18 +173,13 @@ jreleaser {
181173
active.set(Active.RELEASE_PRERELEASE)
182174
url.set("https://central.sonatype.com/api/v1/publisher")
183175
applyMavenCentralRules.set(true)
184-
// Parent POM
185-
stagingRepository(
186-
rootProject.layout.buildDirectory.dir("staging-deploy").get().asFile.absolutePath
187-
)
188-
// Child POMs
189-
subprojects.forEach { project ->
190-
if (project.name !in excludedProjects) {
176+
rootProject.allprojects
177+
.filter { it.name !in excludedProjects }
178+
.forEach {
191179
stagingRepository(
192-
project.layout.buildDirectory.dir("staging-deploy").get().asFile.absolutePath
180+
it.layout.buildDirectory.dir("staging-deploy").get().asFile.absolutePath
193181
)
194182
}
195-
}
196183
}
197184
}
198185
}

0 commit comments

Comments
 (0)