Skip to content

Commit 5199095

Browse files
authored
Post deploy for 0.10.0 (#218)
* Moving GH release to the bottom of the postDeploy task * Quoting gh command params values * Updating version and changelog
1 parent 86355d0 commit 5199095

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.asciidoc

+9-1
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,22 @@ ${next_release_notes}
3232
[float]
3333
===== Features
3434

35+
* New feature: {pull}000[#000]
36+
////
37+
38+
[[release-notes-0.10.0]]
39+
==== 0.10.0 - 2023/10/27
40+
41+
[float]
42+
===== Features
43+
3544
* Adding setExportProtocol configuration to choose between HTTP and gRPC, defaulting to gRPC: {pull}213[#213]
3645
* Upgrading Byte Buddy version to 1.14.9: {pull}207[#207]
3746
* Setting minimum AGP version to 7.4.0 to use the Gradle plugin: {pull}207[#207]
3847
* Removing Gradle's warning on missing serverUrl param: {pull}209[#209]
3948
* Adding http response content length attr to okhttp spans: {pull}211[#211]
4049
* Marking okhttp spans as failed when receiving an error response code: {pull}212[#212]
4150
* Bumping OTel SDK to 1.31.0 and adding new semconv dependency: {pull}217[#217]
42-
////
4351
4452
[[release-notes-0.9.0]]
4553
==== 0.9.0 - 2023/10/16

build-tools/src/main/java/co/elastic/apm/compile/tools/publishing/tasks/PostDeployTask.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ public void execute() {
4141
String currentVersion = properties.getProperty("version");
4242
String releaseTag = "v" + currentVersion;
4343
setGitTag(releaseTag);
44-
setGitHubRelease(currentVersion, releaseTag);
4544

4645
String newVersion = VersionUtility.bumpMinorVersion(currentVersion);
4746

4847
updateNextVersion(gradlePropertiesFile, properties, newVersion);
4948
updateChangelog(currentVersion);
5049

5150
publishChanges();
51+
setGitHubRelease(currentVersion, releaseTag);
5252
log("Finished the post deploy task successfully");
5353
}
5454

@@ -69,7 +69,7 @@ private void setGitHubRelease(String version, String releaseTag) {
6969
log("Setting GitHub release to: " + releaseTag);
7070
String title = "Release " + version;
7171
String notes = "[Release Notes for " + version + "](https://www.elastic.co/guide/en/apm/agent/android/current/release-notes-0.x.html#release-notes-" + version + ")";
72-
runCommand("gh release create " + releaseTag + " --title " + title + " --notes " + notes);
72+
runCommand("gh release create " + releaseTag + " --title \"" + title + "\" --notes \"" + notes + "\"");
7373
}
7474

7575
private void updateNextVersion(File gradlePropertiesFile, Properties properties, String newVersion) {

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#Mon Oct 16 19:33:42 CEST 2023
1+
#Fri Oct 27 13:56:42 CEST 2023
22
androidGradlePlugin_version=7.4.0
33
description=APM for Android applications with the Elastic stack
44
org.gradle.jvmargs=-XX\:MaxMetaspaceSize\=2G
5-
version=0.10.0
5+
version=0.11.0
66
android.useAndroidX=true
77
group=co.elastic.apm

0 commit comments

Comments
 (0)