You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BUILDING.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Building Codename One
2
2
3
-
This guide explains how to build Codename One from source with Maven. It covers the core framework and the Android and iOS ports.
3
+
This guide explains how to build Codename One from source using Maven. It provides reproducible steps to compile the core framework and its Android and iOS ports.
4
4
5
5
## Prerequisites
6
6
7
-
-**JDK 11**
7
+
-**JDK 8**
8
8
-**JDK 17** for building the Android port
9
9
-**Apache Maven 3.6+**
10
10
- macOS with Xcode (required only for the iOS port)
@@ -16,10 +16,10 @@ The helper scripts in the `scripts/` directory download these dependencies when
16
16
Download binaries from [Adoptium](https://adoptium.net):
17
17
18
18
```bash
19
-
# JDK 11 (Linux x64; adjust `_x64_linux_` for your platform)
Clone the repository and run the setup script to download JDK 11 and JDK 17, install Maven, build the core modules, and install the Maven archetypes. This step must be performed before building any ports.
34
+
Clone the repository and run the setup script to download JDK 8 and JDK 17, install Maven, build the core modules, and install the Maven archetypes. This step must be performed before building any ports.
@@ -44,7 +44,7 @@ The script runs `mvn install` in `maven/`, installs `cn1-maven-archetypes`, and
44
44
45
45
## Building the Android port
46
46
47
-
The Android port uses JDK 17 for compilation while Maven runs with JDK 11. Javadoc generation is skipped to avoid known Maven report issues. Run the build script:
47
+
The Android port uses JDK 17 for compilation while Maven runs with JDK 8. Javadoc generation is skipped to avoid known Maven report issues. Run the build script:
48
48
49
49
```bash
50
50
./scripts/build-android-port.sh -DskipTests
@@ -64,9 +64,9 @@ Artifacts are produced in `maven/ios/target`.
64
64
65
65
## Convenience scripts
66
66
67
-
-`setup-workspace.sh` – installs Maven, downloads JDK 11 and JDK 17, builds the core modules, installs Maven archetypes, provisions the Codename One build client, and writes `tools/env.sh`.
68
-
-`build-android-port.sh` – builds the Android port using JDK 11 for Maven and JDK 17 for compilation.
69
-
-`build-ios-port.sh` – builds the iOS port on macOS with JDK 11.
67
+
-`setup-workspace.sh` – installs Maven, downloads JDK 8 and JDK 17, builds the core modules, installs Maven archetypes, provisions the Codename One build client, and writes `tools/env.sh`.
68
+
-`build-android-port.sh` – builds the Android port using JDK 8 for Maven and JDK 17 for compilation.
69
+
-`build-ios-port.sh` – builds the iOS port on macOS with JDK 8.
0 commit comments