Skip to content

Commit 5279a7f

Browse files
author
James Hagborg
committed
Fix gradle build when credentials are not set
1 parent a9d6a8a commit 5279a7f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ Documentation is available on the [project website](https://teamhyper.github.io/
88

99
Also check out the [wiki](https://github.com/teamhyper/hyperlib/wiki).
1010

11+
# Release process
12+
13+
We currently publish to a maven repo at <https://hyperlib.hyperonline.org>,
14+
using `gradle publish`. The publishing job infers the version number from the
15+
most recent *annotated* git tag. So to do a release (say `2.0.0`), you would
16+
ensure your work is committed and you have master checked out, then run:
17+
18+
```bash
19+
git tag -a v2.0.0
20+
./gradlew publish -PhyperlibUser=... -PhyperlibPassword=...
21+
```
22+
23+
Note that the second line starts with a space, so bash will not save the
24+
credentials to `~/.bash_history`. Ask James or Chris for the necessary
25+
credentials.
26+
1127
# License
1228
Copyright 2016-2019 James Hagborg, Christopher McGroarty, Timothy Nguyen
1329

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ publishing {
119119
repositories {
120120
maven {
121121
credentials {
122-
username = hyperlibUser
123-
password = hyperlibPassword
122+
username = project.properties.hyperlibUser
123+
password = project.properties.hyperlibPassword
124124
}
125125
name = 'hyperonline'
126126
url = 'sftp://hyperlib.hyperonline.org:22/home/hyperlib/webapps/hyperlib-repo'

0 commit comments

Comments
 (0)