Hello,
I am trying to configure SonarQube for an android project. Below is a screenshot of the project setup
And this is my build.gradle
apply plugin: "com.github.ben-manes.versions"
buildscript {
ext.kotlin_version = '1.7.20'
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' } // need for super bottom sheet
maven { url "https://plugins.gradle.org/m2/"} // for sonarQube
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.44'
classpath "com.github.ben-manes:gradle-versions-plugin:0.43.0"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.5.0.2730"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
//apply plugin: "org.sonarqube"
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' } // need for super bottom sheet
maven { url "https://plugins.gradle.org/m2/"} // for sonarQube
}
}
apply plugin: "org.sonarqube"
sonar {
properties{
property "sonar.projectKey", "autohawk"
property "sonar.projectName", "autohawk"
property "sonar.language", "kotlin"
property "sonar.sources", "src/main/java"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.login", "admin"
property "sonar.password", "NewAdmin"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
When I run ./gradlew sonar
I get the the output attached with the errors in it.
gradle_output.txt (15.6 KB)
Could you please help me figure out what am I doing wrong?
Thank you,