2019-09-24 17:06:40 +00:00
|
|
|
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()
|
2019-09-24 15:19:21 +00:00
|
|
|
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'
|
2019-09-24 15:19:21 +00:00
|
|
|
classpath group: 'gradle.plugin.com.github.spotbugs', name: 'spotbugs-gradle-plugin', version: '2.0.0'
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-24 15:19:21 +00:00
|
|
|
allprojects {
|
|
|
|
group = 'com.lyndir.masterpassword'
|
|
|
|
version = '2.7.10'
|
|
|
|
}
|
|
|
|
|
2017-02-06 16:16:04 +00:00
|
|
|
subprojects {
|
2019-09-24 15:19:21 +00:00
|
|
|
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()
|
2018-06-10 23:11:22 +00:00
|
|
|
maven { url 'https://maven.lyndir.com' }
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|
2019-09-24 15:19:21 +00:00
|
|
|
dependencies {
|
|
|
|
spotbugsPlugins group: 'com.h3xstream.findsecbugs', name: 'findsecbugs-plugin', version: '1.9.0'
|
2019-09-24 17:06:40 +00:00
|
|
|
//spotbugsPlugins group: 'com.mebigfatguy.sb-contrib', name: 'sb-contrib', version: '7.4.6'
|
|
|
|
}
|
|
|
|
spotbugs {
|
|
|
|
effort 'max'
|
|
|
|
showProgress true
|
2019-09-24 15:19:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType( JavaCompile ) {
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
sourceCompatibility = '1.8'
|
|
|
|
targetCompatibility = '1.8'
|
2019-09-24 17:06:40 +00:00
|
|
|
options.compilerArgs << '-Xlint:unchecked'
|
|
|
|
if (it.name != JavaPlugin.COMPILE_JAVA_TASK_NAME) {
|
|
|
|
options.compilerArgs << '-Xlint:deprecation'
|
|
|
|
}
|
2019-09-24 15:19:21 +00:00
|
|
|
}
|
2019-09-24 17:06:40 +00:00
|
|
|
tasks.withType( SpotBugsTask ) {
|
2019-09-24 15:19:21 +00:00
|
|
|
reports {
|
|
|
|
xml.enabled = false
|
|
|
|
html.enabled = true
|
|
|
|
}
|
|
|
|
}
|
2017-02-06 16:16:04 +00:00
|
|
|
}
|