Skip to content

Files

This branch is 69 commits behind gwtproject/gwt:main.

maven

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 5, 2024
Feb 5, 2024
May 10, 2013
Apr 6, 2023
Jan 4, 2024
Jul 16, 2016
May 5, 2022
May 5, 2022
push-gwt.sh packages and deploys GWT to a local or remote Maven
repository
 
To build GWT from main and deploy to your local repo:

> git switch main
> ant clean dist-dev
> maven/push-gwtproject.sh

Follow the prompts to set the GWT version # and path to the
distribution ZIP (it will automatically find it in build/dist if
you've just built it). By default, the script deploys to your local
Maven repo.

To deploy to a remote repo:

Set GWT_MAVEN_REPO_URL and GWT_MAVEN_REPO_ID as noted in the
script. If the remote repo requires a username and password, define
the repo in your ~/.m2/settings.xml as below and set GWT_MAVEN_REPO_ID
= server id. In this example, GWT_MAVEN_REPO_ID would be "sonatype".

> git switch main
> ant clean dist # must be dist, not dist-dev, to generate Javadocs
> maven/push-gwtproject.sh

~/.m2/settings.xml:
<settings>
  <localRepository>${env.M2_REPO}</localRepository>
  <servers>
    <server>
      <id>sonatype</id>
      <username>sonatype_username</username>
      <password>sonatype_password</password>
    </server>
  </servers>
</settings>

If the remote repo requires jar signing as does Sonatype (Maven
Central), set up GPG on your local machine then enter the passphrase
when prompted. When deploying locally, you can enter a passphrase to
sign the jars for testing or press Enter to skip signing altogether.