Skip to content

Commit 72e5313

Browse files
committed
Generate breaking-changes and deprecations as well
1 parent b364002 commit 72e5313

File tree

8 files changed

+135
-422
lines changed

8 files changed

+135
-422
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/BundleChangelogsTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public BundleChangelogsTask(ObjectFactory objectFactory, ExecOperations execOper
7474
public void executeTask() throws IOException {
7575
final String upstreamRemote = gitWrapper.getUpstream();
7676

77-
String ref = "main";
77+
String ref = "43827b943938345d348826f5766dd8e986ec7b20";
7878
try {
7979
checkoutChangelogs(gitWrapper, upstreamRemote, ref);
8080
Properties props = new Properties();

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public void executeTask() throws IOException {
111111

112112
LOGGER.info("Generating release notes...");
113113
ReleaseNotesGenerator.update(this.releaseNotesTemplate.get().getAsFile(), this.releaseNotesFile.get().getAsFile(), bundles);
114+
ReleaseNotesGenerator.update(this.breakingChangesTemplate.get().getAsFile(), this.breakingChangesFile.get().getAsFile(), bundles);
115+
ReleaseNotesGenerator.update(this.deprecationsTemplate.get().getAsFile(), this.deprecationsFile.get().getAsFile(), bundles);
114116

115117
// Only update breaking changes and deprecations for new minors
116118
// if (qualifiedVersion.revision() == 0) {

build-tools-internal/src/main/resources/templates/breaking-changes.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ If you are migrating from a version prior to version 9.0, you must first upgrade
1313
To learn how to upgrade, check out <upgrade docs>.
1414

1515
% ## Next version [elasticsearch-nextversion-breaking-changes]
16-
16+
<%
17+
for(bundle in changelogBundles) {
18+
def version = bundle.version
19+
def versionWithoutSeparator = bundle.versionWithoutSeparator
20+
def changelogsByTypeByArea = bundle.changelogsByTypeByArea
21+
def unqualifiedVersion = bundle.unqualifiedVersion
22+
%>
1723
## ${unqualifiedVersion} [elasticsearch-${versionWithoutSeparator}-breaking-changes]
1824
<%
1925
if (!changelogsByTypeByArea['breaking']) {
@@ -35,3 +41,4 @@ To learn how to upgrade, check out <upgrade docs>.
3541

3642
print "\n\n"
3743
}
44+
}

build-tools-internal/src/main/resources/templates/deprecations.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ To give you insight into what deprecated features you’re using, {{es}}:
1515
* [Provides a deprecation info API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-deprecations) that scans a cluster’s configuration and mappings for deprecated functionality.
1616

1717
% ## Next version [elasticsearch-nextversion-deprecations]
18-
18+
<%
19+
for(bundle in changelogBundles) {
20+
def version = bundle.version
21+
def versionWithoutSeparator = bundle.versionWithoutSeparator
22+
def changelogsByTypeByArea = bundle.changelogsByTypeByArea
23+
def unqualifiedVersion = bundle.unqualifiedVersion
24+
%>
1925
## ${unqualifiedVersion} [elasticsearch-${versionWithoutSeparator}-deprecations]
2026
<%
2127
if (!changelogsByTypeByArea['deprecation']) {
@@ -36,3 +42,4 @@ To give you insight into what deprecated features you’re using, {{es}}:
3642
}
3743
print "\n\n"
3844
}
45+
}

docs/release-notes/breaking-changes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ To learn how to upgrade, check out <upgrade docs>.
1414

1515
% ## Next version [elasticsearch-nextversion-breaking-changes]
1616

17+
## 9.0.0 [elasticsearch-900-breaking-changes]
18+
19+
No breaking changes in this version.
20+
1721
## 9.1.0 [elasticsearch-910-breaking-changes]
1822

1923
Discovery-Plugins:
@@ -22,4 +26,7 @@ Discovery-Plugins:
2226
Infra/Logging:
2327
* Rename deprecation index template [#125606](https://github.com/elastic/elasticsearch/pull/125606) (issue: {es-issue}125445[#125445])
2428

29+
TLS:
30+
* Drop `TLS_RSA` cipher support for JDK 24 [#123600](https://github.com/elastic/elasticsearch/pull/123600)
31+
2532

0 commit comments

Comments
 (0)