Francesco Galgani
Francesco Galgani

Reputation: 6249

Keep Codename One updated

I didn't understand if to keep Codename One up to date, so that the local code matches the one on the build servers, I always have to manually remind myself to right click on the project, then on "Run Maven" -> "Update Codename One" (in Netbeans) or if there is an automatic update. Thanks for the clarification.

Upvotes: 1

Views: 57

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

First you need to fix:

    <cn1.version>LATEST</cn1.version>

Setting this to LATEST will make sure you're always using the current version of Codename One. This should be the default when downloading from start.codenameone.com but wasn't the default until recently.

The plugin version needs to be updated manually:

    <cn1.plugin.version>7.0.29</cn1.plugin.version>

Once a week you can see a commit like this: https://github.com/codenameone/CodenameOne/commit/48f0452bbb92f06653155ec3e8536e6b5e3bdcb6 which tells you the latest version (currently 7.0.29).

This version can't be automated and should be modified more "carefully" since the plugin might break compatibility and require additional changes. E.g the current version moved some files from the root to make the project look cleaner.

Upvotes: 1

Related Questions