Skip to content

Commit 00563d7

Browse files
committed
use gradlew.
1 parent 13e30e9 commit 00563d7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ BuildStrongswan:
180180
- export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
181181
- export PATH=$JAVA_HOME/bin:$PATH
182182

183+
# Install Gradle
184+
- GRADLE_VERSION=8.5
185+
- wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip
186+
- unzip gradle-${GRADLE_VERSION}-bin.zip -d /opt/gradle
187+
- export PATH="/opt/gradle/gradle-${GRADLE_VERSION}/bin:$PATH"
188+
- gradle --version
189+
183190
# Create Android SDK dir
184191
- mkdir -p /opt/android-sdk/cmdline-tools
185192
- cd /opt/android-sdk

tools/build_strongswan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cd "$APP_DIR"
5151
sed -i '/arguments '\''-j'\'' \+ Runtime\.runtime\.availableProcessors()/a\ arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"' build.gradle
5252

5353
echo "===> Building release APK..."
54-
./../.gradlew assembleRelease
54+
gradle assembleRelease
5555

5656
echo "===> Copying output libs to: $STRONGSWAN_LIBS_DST"
5757
mkdir -p "$STRONGSWAN_LIBS_DST"

0 commit comments

Comments
 (0)