Skip to content

Commit 38bd8ce

Browse files
committed
Re-add deleted Changelog extension methods from 2.2
- Instead of #fromTag and #fromCommit, use #from - Instead of #disableAutomaticPublicationRegistration, use 'publishAll = false'
1 parent 246a369 commit 38bd8ce

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/groovy/net/minecraftforge/gradleutils/changelog/ChangelogExtension.groovy

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,21 @@ class ChangelogExtension {
5656
this.task.configure { it.start.set marker }
5757
}
5858

59+
@Deprecated(forRemoval = true, since = '2.4')
60+
void fromTag(String tag) {
61+
this.from(tag)
62+
}
63+
64+
@Deprecated(forRemoval = true, since = '2.4')
65+
void fromCommit(String commit) {
66+
this.from(commit)
67+
}
68+
69+
@Deprecated(forRemoval = true, since = '2.4')
70+
void disableAutomaticPublicationRegistration() {
71+
this.publishAll = false
72+
}
73+
5974
void publish(MavenPublication publication) {
6075
ChangelogUtils.setupChangelogGenerationForPublishing(this.project, publication)
6176
}

0 commit comments

Comments
 (0)