Skip to content

Commit

Permalink
Cannot get release script working, lets just ditch maven =(
Browse files Browse the repository at this point in the history
  • Loading branch information
jfly committed Mar 10, 2015
1 parent 51f18e0 commit bab9cf5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ You can run the `.jar` from the commandline using:

*Important note: You must never use a custom build for any official competitions.* [Contact the WCA Board and the WRC](https://www.worldcubeassociation.org/contact) if you have any questions about this.

### Releasing

First make sure that `./tmt make` works. This will involve installing the
android sdk and setting up an ANDROID_HOME environment variable.

~/.gradle/gradle.properties needs a few things: .

See http://gradle.org/docs/current/userguide/signing_plugin.html for how to
create PGP key pair.

### TNoodle Timer (TNT) and Other Projects

Expand Down
6 changes: 5 additions & 1 deletion tmt
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ class tmt:

if not tmt.args.dry_run:
tnoodleAndroidProject = tmt.TmtProject.projects['tnoodle-android']
tnoodleAndroidProject.publishToMavenCentral()
# TODO - cannot figure out how to get
# http://gradle.org/docs/current/userguide/signing_plugin.html working.
# Since we're going to be rewriting tnoodle anyways, lets just not bother
# keeping maven up to date.
# tnoodleAndroidProject.publishToMavenCentral()

print("Releasing TNoodle")

Expand Down
5 changes: 3 additions & 2 deletions tnoodle-android/tnoodle-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ gradle.taskGraph.whenReady { taskGraph ->
}
console.printf "signing.secretKeyRingFile is $file\n"

if(!hasProperty("signing.password")) {
def password = console.readPassword("PGP Private Key Password: ")
def password = property("signing.password")
if(password == null) {
password = console.readPassword("PGP Private Key Password: ")
allprojects { ext."signing.password" = password }
}

Expand Down

0 comments on commit bab9cf5

Please sign in to comment.