Hi!
i have to integrate the Soter plugin for my Android project from Soter
To integrate Checkstyle and Findbugs and add some support for these plugins.
But i got a problem during the Gradle sync, which always failed, saying that my project is not Android project. This didn’t happen before I added the plugin…
Here is my root/build.gradle :
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath "gradle.plugin.si.dlabs.gradle:soter:1.0.8"
}
}
plugins {
id "si.dlabs.soter" version "1.0.8"
}
allprojects {
repositories {
jcenter()
}
}
/*
soter {
checkstyle {
enabled true
showViolations true
toolVersion '6.15'
}
findbugs {
enabled true
reportType 'html'
}
pmd {
enabled false
}
}
*/
task clean(type: Delete) {
delete rootProject.buildDir
}
and here my app/build.gradle :
apply plugin: 'com.android.application'
apply plugin: 'si.dlabs.soter'
repositories {
jcenter()
flatDir {
dirs 'prebuilt-libs'
}
}
dependencies {
compile 'com.android.support:support-v4:24.0.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
}
android {
compileSdkVersion 19
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "fr.consort.pocedf"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
// set to true to turn off analysis progress reporting by lint
quiet false
// if true, stop the gradle build if errors are found
abortOnError false
// if true, only report errors
ignoreWarnings true
}
}
Does anyone have an idea about how to fix this issue ? I found nothing about this problem on the Git Issue part of the plugin…
Thanks !