When I apply the plugins for Checkstyle, PMD, and FindBugs it doesn’t create the tasks (checkstyleMain, pmdMain, findbugsMain, and company). I’m currently on Gradle 4.1 RC2 and if it matters at all, Android plugin 3 alpha 9.
My current build.gradle file is as follows:
apply plugin: 'com.android.application'
apply plugin: 'pmd'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
repositories {
mavenCentral()
google() // Gradle 4.0 adds this
}
android {
compileSdkVersion 26
buildToolsVersion '26.0.1'
defaultConfig {
applicationId "com.gelakinetic.mtgfam"
minSdkVersion 15
targetSdkVersion 26
versionCode 49
versionName "3.4.2"
vectorDrawables.useSupportLibrary = true
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.txt'
findbugs
}
}
flavorDimensions "license"
productFlavors {
standard {
dependencies {
compile 'com.google.firebase:firebase-appindexing:11.0.2'
}
dimension "license"
}
foss {
versionName "3.4.2-foss"
dimension "license"
}
}
}
dependencies {
compile 'org.apache.commons:commons-lang3:3.6'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'org.apache.commons:commons-collections4:4.1'
compile 'cz.msebera.android:httpclient:4.4.1.2'
compile 'com.octo.android.robospice:robospice:1.4.14'
compile 'com.octo.android.robospice:robospice-cache:1.4.14'
compile 'com.android.support:support-v4:26.0.0'
compile 'com.android.support:support-v13:26.0.0'
compile 'com.android.support:appcompat-v7:26.0.0'
compile 'com.android.support:cardview-v7:26.0.0'
compile 'com.android.support:design:26.0.0'
compile 'com.android.support:gridlayout-v7:26.0.0'
compile 'com.android.support:recyclerview-v7:26.0.0'
compile 'com.github.woxthebox:draglistview:1.4.7'
compile 'org.jetbrains:annotations:13.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.afollestad.material-dialogs:core:0.9.4.5'
compile 'com.jpardogo.materialtabstrip:library:1.1.1'
compile 'com.code-troopers.betterpickers:library:3.1.0'
compile 'com.github.machinarius:preferencefragment:0.1.2'
compile 'org.jsoup:jsoup:1.10.3'
compile "com.splitwise:tokenautocomplete:2.0.8"
}