Ich habe die folgende App bulild.gradle für mein Projekt. Wenn ich den Command-Gradle-Check ausführe, wird keine Ausgabe im Ordner app/build/ gemeldet. Ich habe im Grunde den gleichen Code für ein vorheriges Projekt verwendet und es schien gut zu funktionieren.Gradle Plugins (findbugs, pmd, jdepend, checkstyle) funktioniert nicht
apply plugin: 'com.android.application'
apply plugin: "findbugs"
apply plugin: 'pmd'
apply plugin: "jdepend"
apply plugin: 'checkstyle'
findbugs {
ignoreFailures = false
effort = "max"
reportLevel = "low"
}
pmd {
ignoreFailures = true
}
jdepend{
ignoreFailures = true
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
html.stylesheet resources.text.fromFile('config/xsl/checkstyle-custom.xsl')
}
}
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "dat255.refugeeevent"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.google.android.gms:play-services:9.6.1'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.google.code.gson:gson:2.7'
testCompile 'junit:junit:4.12'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.github.bumptech.glide:glide:3.5.2'
compile files ('libs/microsoft-translator-java-api-0.6.2-jar-with-dependencies.jar')
}
Diese Lösung ist erstaunlich – Marcus
froh, dass Sie es mögen. Ich hasse, dass so viel Arbeit notwendig war, damit etwas Einfaches verwendbar ist – spy
Ich konnte mehr nicht zustimmen! – Marcus