Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 77a9489

Browse files
authored
Merge pull request #29 from bkoehm/bkoehm.grails7
Grails 7: fix publishing
2 parents 4295343 + 1d1d35b commit 77a9489

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ ext.pomInfo = {
165165
}
166166

167167
publishing {
168+
if (isSnapshot) {
169+
repositories {
170+
maven {
171+
credentials {
172+
username = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
173+
password = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
174+
}
175+
url "https://repo.grails.org/grails/plugins3-snapshots-local"
176+
}
177+
}
178+
}
179+
168180
publications {
169181
maven(MavenPublication) {
170182
groupId = project.group

0 commit comments

Comments
 (0)