forked from lucene-gosen/lucene-gosen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGRADLE_CHEATSHEET.txt
37 lines (26 loc) · 903 Bytes
/
GRADLE_CHEATSHEET.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
## Gradle Wrapper
Use Gradle Wrapper (`./gradlew`) instead installed Gradle.
If you want to upgradel gradle, change gradle/wrapper/gradle-wrapper.properties
## Cheatsheet
ant compile -> ./gradlew compileJava
ant compile-tests -> ./gradlew compileTestJava
ant javadoc -> ./gradlew javadoc
ant jar -Ddictype=ipadic -> ./gradlew jarWithIpaDic
ant jar -Ddictype=naist-chasen -> ./gradlew jarWithNaistChasen
cd dictionary;ant clean -> ./gradlew :dictionary:clean
ant dist -> ./gradlew dist
## For committer
There are some environment properties in gradle.properties.
For uploadArchives, we need set some properties in ~/.gradle/gradle.properties
Example :
```
signing.keyId=KEY_ID
signing.secretKeyRingFile=/Users/johtani/.gnupg/secring.gpg
sonatypeUsername=USER_NAME
sonatypeFullname=FULL_NAME
```
Then,
```
$ ./gradlew uploadArchives
```
the task asks you sshkey password and Sonatype password.