Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 24 and 25 #23

Open
yoobi opened this issue Dec 13, 2024 · 0 comments
Open

version 24 and 25 #23

yoobi opened this issue Dec 13, 2024 · 0 comments

Comments

@yoobi
Copy link

yoobi commented Dec 13, 2024

Hello,

I'm using your docker image on gitlab and it has been working properly but I'm getting issue with the last two versions (24 and 25).

$ chmod +x ./gradlew
$ ls -al
total 64
drwxrwxrwx 7 root root 4096 Dec 13 07:14 .
drwxrwxrwx 4 root root 4096 Jan  5  2024 ..
-rw-rw-rw- 1 root root  519 Dec 13 07:14 build.gradle.kts
drwxrwxrwx 7 root root 4096 Dec 13 07:14 .git
-rw-rw-rw- 1 root root  110 Jan  5  2024 .gitignore
-rw-rw-rw- 1 root root  7 Dec 13 07:14 .gitlab-ci.yml
drwxrwxrwx 3 root root 4096 Oct 10 16:31 gradle
-rw-rw-rw- 1 root root 1358 Jan  5  2024 gradle.properties
-rwxrwxrwx 1 root root 5766 Dec 13 07:14 gradlew
-rw-rw-rw- 1 root root 2674 Jan  5  2024 gradlew.bat
-rw-rw-rw- 1 root root  898 Oct 10 16:31 publishing.gradle.kts
-rw-rw-rw- 1 root root  5 Jun  5  2024 settings.gradle.kts
drwxrwxrwx 4 root root 96 Dec 12 20:12 library
$ java -version
openjdk version "21.0.5" 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu120.04)
OpenJDK 64-Bit Server VM (build 21.0.5+11-Ubuntu-1ubuntu120.04, mixed mode, sharing)
$ ./gradlew :wgplayer:publish
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

My .gitlab-ci.yml looks like

image: inovex/gitlab-ci-android:23

variables:
  GRADLE_OPTS: "-Dorg.gradle.daemon=false"

before_script:
  - export GRADLE_USER_HOME=$(pwd)/.gradle
  - chmod +x ./gradlew
  - ls -al

.only-main:
  only:
    - main

stages:
  - publish

publish:
  extends: .only-main
  stage: publish
  script:
    - java -version
    - ./gradlew :my-awesome-library:publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant