-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
47 lines (39 loc) · 1.67 KB
/
README.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
38
39
40
41
42
43
44
45
46
47
To get started:
1. Install JDK 8. (Newer versions will not work.)
On OS X with Homebrew, run these commands:
```
$ brew tap AdoptOpenJDK/openjdk
$ brew cask install adoptopenjdk8
```
2. Create .envrc as follows:
export WUNDERGROUND_API_KEY=<your API key>
export WUNDERGROUND_ENDPOINT=http://api.wunderground.com
export FORECAST_API_KEY=<your API key>
export FORECAST_ENDPOINT=https://api.forecast.io/forecast
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
(Note: Seattle Beach members can obtain API keys from weather_envrc
on Google Drive.)
3. Try to build and run
1. `$ ./gradlew assemble`
2. `java -jar build/libs/weatherbus-weather-0.0.1-SNAPSHOT.jar`
IntelliJ setup:
(Note: this does not currently work unless you're running IntelliJ itself on an
old version of Java. Gradle needs to be upgraded before newer versions will
work.)
1. Launch IntelliJ from within the repo root: `idea .`
2. Import the gradle file:
1. Import Project from the intellij splash screen
2. Select build.gradle from the repo root
3. Accept the defaults
4. Set the project SDK:
1. Select File -> Project Structure
2. Select Project Settings/Project
3. Set Project SDK to JDK 8 (probably in /Library/Java/JavaVirtualMachines).
3. Tell compiler that lombok is a thing
1. Preferences -> Plugins -> Install
2. Install lombok plugin
4. Enable annotation processing
1. IntelliJ Idea -> Preferences
2. Build, Execution, Deployment -> Compiler -> Annotation Processors
3. Check "Enable annotation processing"