-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
64 lines (54 loc) · 1.73 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.0'
}
}
apply plugin: 'groovy'
apply plugin: 'com.gradle.plugin-publish'
group = 'com.github.mjdetullio.gradle'
version = '1.0.10'
description = 'A plugin for integrating with Coverity, a static analysis ' +
'platform. Adds tasks to the project that will emit, analyze, and ' +
'commit data using Coverity Analysis Tools that are installed on the ' +
'user\'s machine. Supports analysis of Java code for Java and/or ' +
'Android projects.'
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:1.0.0'
}
pluginBundle {
website = 'https://github.com/mjdetullio/gradle-coverity-plugin'
vcsUrl = 'https://github.com/mjdetullio/gradle-coverity-plugin'
description = project.description
tags = ['coverity', 'java', 'android', 'sca', 'static code analysis', 'static analysis', 'code quality']
plugins {
coverityPlugin {
id = 'com.github.mjdetullio.gradle.coverity'
displayName = 'Gradle Coverity Plugin'
}
}
}
task checkJavaVersion << {
if (!JavaVersion.current().isJava6()) {
throw new GradleException(
"JDK 1.6 is required (found ${JavaVersion.current()}).")
}
}
compileJava.dependsOn checkJavaVersion
compileGroovy {
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
options.encoding = 'UTF-8'
options.compilerArgs = ['-Xlint:all']
options.deprecation = true
options.warnings = true
}