2
0
MasterPassword/build.gradle

56 lines
1.4 KiB
Groovy
Raw Permalink Normal View History

import com.github.spotbugs.SpotBugsTask
2017-02-06 16:16:04 +00:00
buildscript {
repositories {
2018-06-10 19:22:37 +00:00
google()
2017-02-06 16:16:04 +00:00
jcenter()
gradlePluginPortal()
2017-02-06 16:16:04 +00:00
}
dependencies {
2019-09-23 18:13:03 +00:00
classpath group: 'com.android.tools.build', name: 'gradle', version: '3.5.0'
classpath group: 'gradle.plugin.com.github.spotbugs', name: 'spotbugs-gradle-plugin', version: '2.0.0'
2017-02-06 16:16:04 +00:00
}
}
allprojects {
group = 'com.lyndir.masterpassword'
2021-03-03 00:33:43 +00:00
version = '2.7.12'
}
2017-02-06 16:16:04 +00:00
subprojects {
apply plugin: 'com.github.spotbugs'
2017-02-06 16:16:04 +00:00
repositories {
2018-06-10 19:22:37 +00:00
google()
jcenter()
2017-02-06 16:16:04 +00:00
mavenCentral()
maven { url 'https://maven.lyndir.com' }
2017-02-06 16:16:04 +00:00
}
dependencies {
//spotbugsPlugins group: 'com.h3xstream.findsecbugs', name: 'findsecbugs-plugin', version: '1.11.0'
//spotbugsPlugins group: 'com.mebigfatguy.sb-contrib', name: 'sb-contrib', version: '7.4.6'
}
spotbugs {
effort 'max'
showProgress true
}
tasks.withType( JavaCompile ) {
options.encoding = 'UTF-8'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
options.compilerArgs << '-Xlint:unchecked'
if (it.name != JavaPlugin.COMPILE_JAVA_TASK_NAME) {
options.compilerArgs << '-Xlint:deprecation'
}
}
tasks.withType( SpotBugsTask ) {
reports {
xml.enabled = false
html.enabled = true
}
}
2017-02-06 16:16:04 +00:00
}