Skip to content

Commit be42fb6

Browse files
committed
Update fallback publishing maven URL
Added `releases`
1 parent cbaf955 commit be42fb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/groovy/net/minecraftforge/gradleutils/GradleUtils.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class GradleUtils {
137137
* @return The action
138138
*/
139139
static Action<? super MavenArtifactRepository> getPublishingForgeMaven(Project project, File defaultFolder = project.rootProject.file('repo')) {
140-
setupSnapshotCompatiblePublishing(project, 'https://maven.minecraftforge.net/', defaultFolder)
140+
setupSnapshotCompatiblePublishing(project, 'https://maven.minecraftforge.net/releases', defaultFolder)
141141
}
142142

143143
/**
@@ -166,7 +166,7 @@ class GradleUtils {
166166
* @param defaultFolder The default folder if the required maven information is not set
167167
* @return The action
168168
*/
169-
static Action<? super MavenArtifactRepository> setupSnapshotCompatiblePublishing(Project project, String fallbackPublishingEndpoint = 'https://maven.minecraftforge.net/', File defaultFolder = project.rootProject.file('repo'), File defaultSnapshotFolder = project.rootProject.file('snapshots')) {
169+
static Action<? super MavenArtifactRepository> setupSnapshotCompatiblePublishing(Project project, String fallbackPublishingEndpoint = 'https://maven.minecraftforge.net/releases', File defaultFolder = project.rootProject.file('repo'), File defaultSnapshotFolder = project.rootProject.file('snapshots')) {
170170
// make properties of what we use so gradle's cache is aware
171171
final snapshot = project.objects.property(Boolean).value project.providers.provider {
172172
project.version?.toString()?.endsWith('-SNAPSHOT')

0 commit comments

Comments
 (0)