I have one android project which is running perfectly but when i try to run sonarqube-check from CI/CD it's showing lower gradle error my project is already running on latest gradle 7.0.3
sonarqube is already setup in gitlab
Project level gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven {
url 'https://sdk.squareup.com/public/android'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
sonarqube-check:
tags:
- runner
image: gradle:jre11-slim
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script: gradle sonarqube
allow_failure: true
when: manual
only:
- dev_mitesh # or the name of your main branch
I have one android project which is running perfectly but when i try to run sonarqube-check from CI/CD it's showing lower gradle error my project is already running on latest gradle 7.0.3
sonarqube is already setup in gitlab
Project level gradle
app-level gradle
.gitlab-ci.yml
i am trying to check from CI/CD pipelines
i am getting something like this in response
Please suggest me what is wrong
Any suggestion would be highly appreciated.