Prompt some informations on your screen when opened terminal.
- git 2.31.1
- gradle 7.0.2
- openjdk 15.0.2
git clone https://github.com/asas1asas200/HelloPrompt.git
cd HelloPrompt
./gradlew build
./gradlew run # or run in quiet mode $ ./gradlew run -q
- Register an API credentials Google Calendar API
- Download the credentials and rename it as
credentials.json
. - Put it into
src/main/resources/
-
Register an API token by steps in 開發指南
-
Create a file at
src/main/resources
. -
Rename as
authority_key.csv
. -
Input text like this
授權碼,{YOUR_TOKEN_HERE}
# build first
./gradlew shadowJar
# run with default location
java -jar build/libs/HelloPrompt-1.0-all.jar
# run with custom location
java -jar build/libs/HelloPrompt-1.0-all.jar --location 桃園市
java -jar build/libs/HelloPrompt-1.0-all.jar -l 新北市
./gradlew shadowJar
cp build/libs/HelloPrompt-1.0-all.jar ~/Desktop
echo 'java -jar ~/Desktop/HelloPrompt-1.0-all.jar' >> ~/.bashrc