Skip to content

Commit

Permalink
chore: release appengine-plugins-core 0.10.1 (#972)
Browse files Browse the repository at this point in the history
* fix(chore): setting next release version

This commit was made via apply_current_versions.sh after
updating versions.txt:

$ vim versions.txt
$ ~/google-cloud-java/generation/apply_current_versions.sh

* log message

* Using the current appengine-plugins-core in app-gradle-plugin

The Release Please annotation syntax is from old gax-java:
https://github.com/googleapis/gax-java/blob/9eb24ba32819587e8179be0482017439cd889c4d/gax-httpjson/build.gradle

* add developer, license, and project url

---------

Co-authored-by: Joe Wang <joewa@google.com>
  • Loading branch information
suztomo and JoeWang1127 committed Dec 13, 2023
1 parent f81670d commit 6b7c42a
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 21 deletions.
37 changes: 22 additions & 15 deletions .kokoro/stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,34 @@ cp settings.xml "${HOME}"/.m2

gcloud components install app-engine-java --quiet

echo "Staging a release"
# stage release
./mvnw clean deploy \
-Dorg.slf4j.simpleLogger.showDateTime=true \
-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \
--show-version \
--no-transfer-progress \
--batch-mode \
--settings "${MAVEN_SETTINGS_FILE}" \
-DskipTests=true \
-DperformRelease=true \
-Dgpg.executable=gpg \
-Dgpg.passphrase="${GPG_PASSPHRASE}" \
-Dgpg.homedir="${GPG_HOMEDIR}"
-Dorg.slf4j.simpleLogger.showDateTime=true \
-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \
--show-version \
--no-transfer-progress \
--batch-mode \
--settings "${MAVEN_SETTINGS_FILE}" \
-DskipTests=true \
-DperformRelease=true \
-Dgpg.executable=gpg \
-Dgpg.passphrase="${GPG_PASSPHRASE}" \
-Dgpg.homedir="${GPG_HOMEDIR}"

echo "Successfully finished 'mvn deploy'"

# promote release
if [[ -n "${AUTORELEASE_PR}" ]]; then
echo "Promoting the staged repository"
./mvnw nexus-staging:release \
--batch-mode \
--settings "${MAVEN_SETTINGS_FILE}" \
--activate-profiles release-staging-repository \
-DperformRelease=true
--batch-mode \
--settings "${MAVEN_SETTINGS_FILE}" \
--activate-profiles release-staging-repository \
-DperformRelease=true
echo "Successfully finished 'mvn nexus-staging:release'"
else
echo "AUTORELEASE_PR environment variable is not set (probably testing something). Not promoting the staged repository."
fi

popd
2 changes: 1 addition & 1 deletion app-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ group = "com.google.cloud.tools"
dependencies {
implementation(localGroovy())
implementation(gradleApi())
api("com.google.cloud.tools:appengine-plugins-core:0.10.1-SNAPSHOT")
api("com.google.cloud.tools:appengine-plugins-core:0.10.1") // {x-version-update:appengine-plugins-core:current}

testImplementation("commons-io:commons-io:2.11.0")
testImplementation("junit:junit:4.13.2")
Expand Down
41 changes: 39 additions & 2 deletions app-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,50 @@

<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.5.1-SNAPSHOT</version><!-- {x-version-update:app-maven-plugin:current} -->
<version>2.5.1</version><!-- {x-version-update:app-maven-plugin:current} -->
<packaging>maven-plugin</packaging>

<name>App Engine Maven Plugin</name>
<description>
This Maven plugin provides goals to build and deploy Google App Engine applications.
</description>
<url>https://github.com/GoogleCloudPlatform/appengine-plugins/tree/main/app-maven-plugin</url>

<organization>
<name>Google LLC</name>
<url>https://www.google.com</url>
</organization>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<developers>
<developer>
<id>joaomartins</id>
<name>João Martins</name>
<email>joaomartins@google.com</email>
<organization>Google</organization>
<organizationUrl>http://www.google.com</organizationUrl>
</developer>
<developer>
<id>appu</id>
<name>Appu Goundan</name>
<email>appu@google.com</email>
<organization>Google</organization>
<organizationUrl>http://www.google.com</organizationUrl>
</developer>
<developer>
<id>meltsufin</id>
<name>Mike Eltsufin</name>
<email>meltsufin@google.com</email>
<organization>Google</organization>
<organizationUrl>http://www.google.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:https://github.com/GoogleCloudPlatform/app-maven-plugin.git
Expand Down Expand Up @@ -55,7 +92,7 @@
<dependency>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-plugins-core</artifactId>
<version>0.10.1-SNAPSHOT</version><!-- {x-version-update:appengine-plugins-core:current} -->
<version>0.10.1</version><!-- {x-version-update:appengine-plugins-core:current} -->
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion appengine-plugins-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-plugins-core</artifactId>
<version>0.10.1-SNAPSHOT</version><!-- {x-version-update:appengine-plugins-core:current} -->
<version>0.10.1</version><!-- {x-version-update:appengine-plugins-core:current} -->

<name>App Engine Plugins Core Library</name>
<description>
Expand Down
4 changes: 2 additions & 2 deletions versions.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Format:
# module:released-version:current-version

appengine-plugins-core:0.10.0:0.10.1-SNAPSHOT
app-maven-plugin:2.5.0:2.5.1-SNAPSHOT
appengine-plugins-core:0.10.0:0.10.1
app-maven-plugin:2.5.0:2.5.1

0 comments on commit 6b7c42a

Please sign in to comment.