Skip to content

version 24 and 25 #23

@yoobi

Description

@yoobi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions