Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add java release commands #29

Merged
merged 2 commits into from
Aug 23, 2018
Merged

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Aug 23, 2018

The general process for java is:

  1. Update the version numbers from x.y.z-SNAPSHOT to the target semantic version (without SNAPSHOT).
  2. Create the release branch and PR.
  3. Do the maven release (not handled here)
  4. Merge the release PR
  5. Create the GitHub release
  6. Bump the version numbers to the (new release+1)-SNAPSHOT (not handled here)

Java libraries do not maintain a running CHANGELOG.md (can revisit this later) so we put the release notes in the PR body and extract them for the GitHub release.

Example PR: googleapis/google-auth-library-java#179

@theacodes
Copy link
Contributor

Love this. Gonna try to review today after I solve some bugs here.

Copy link
Contributor

@theacodes theacodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking mostly ready, just some small things.


def gather_changes(ctx: Context) -> None:
click.secho(f"> Gathering changes since {ctx.last_release_version}", fg="cyan")
ctx.changes = releasetool.git.summary_log(ctx.last_release_committish)

This comment was marked as spam.

This comment was marked as spam.


def gather_pom_xml_files(ctx: Context) -> None:
ctx.pom_files = glob('**/pom.xml', recursive=True)
print(ctx.pom_files)

This comment was marked as spam.

This comment was marked as spam.


def update_pom_xml(ctx: Context) -> None:
click.secho("> Updating snapshot versions in pom.xml files.", fg="cyan")
print(ctx.snapshot_version)

This comment was marked as spam.

This comment was marked as spam.

if match is not None:
ctx.release_tag = match.group(1)
else:
print(

This comment was marked as spam.

This comment was marked as spam.

@theacodes theacodes merged commit 82895cb into googleapis:master Aug 23, 2018
@theacodes
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants