Skip to content

Commit c19c8de

Browse files
author
Robbie Plankenhorn
committed
Updated gradle.properties to not hard code org.gradle.java.home.
1 parent 1c3f732 commit c19c8de

3 files changed

Lines changed: 36 additions & 7 deletions

File tree

README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,29 @@ Home page: http://kegbot.org/
1414
Developers: Quick Setup Instructions
1515
------------------------------------
1616

17-
Bear with us as better develop documentation is coming!
18-
19-
In the meantime, here are quick and dirty steps:
20-
21-
- Clone the kegbot-android repo
17+
### Prerequisites
18+
19+
- Java 17 or higher (required for Android Gradle Plugin 8.x)
20+
- Android SDK
21+
- Android Studio or compatible IDE
22+
23+
### Setup Steps
24+
25+
1. Clone the kegbot-android repo
26+
2. Copy `local.properties.template` to `local.properties`
27+
3. Edit `local.properties` to set your Android SDK path:
28+
```
29+
sdk.dir=/path/to/your/android/sdk
30+
```
31+
4. Set up Java 17:
32+
- **Option A**: Set `JAVA_HOME` environment variable to your Java 17 installation
33+
- **Option B**: Add `org.gradle.java.home=/path/to/your/java17` to `local.properties`
34+
5. Build the project:
35+
```bash
36+
./gradlew build
37+
```
38+
39+
### For Eclipse Users (Legacy)
2240
- Eclipse: Import -> Existing Projects into Workspace.
2341
- Import the projects (Kegtab, KegtabTest)
2442

@@ -39,4 +57,3 @@ LICENSE.txt for the full license.
3957

4058
The Kegbot name and logo are trademarks of the Kegbot project; please don't
4159
reuse them without our permission.
42-

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ android.enableJetifier=true
22
android.useAndroidX=true
33

44
# Set Gradle to use Java 17 for Android Gradle Plugin 8.x compatibility
5-
org.gradle.java.home=/Users/rplankenhorn/.local/share/mise/installs/java/zulu-17.46.19.0/zulu-17.jdk/Contents/Home
5+
# Configure JAVA_HOME environment variable or set org.gradle.java.home in your local gradle.properties
6+
# Example: org.gradle.java.home=/path/to/your/java17/installation

local.properties.template

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## This file must *NOT* be checked into Version Control Systems,
2+
# as it contains information specific to your local configuration.
3+
#
4+
# Location of the Android SDK. This is only used by Gradle.
5+
# For customization when using a Version Control System, please read the
6+
# header note.
7+
sdk.dir=/path/to/your/android/sdk
8+
9+
# Optional: Set Java home for Gradle (if not using JAVA_HOME environment variable)
10+
# This should point to a Java 17+ installation for Android Gradle Plugin 8.x compatibility
11+
# org.gradle.java.home=/path/to/your/java17/installation

0 commit comments

Comments
 (0)