-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (73 loc) · 1.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Copyright (c) 2018 SomeDeveloper/SomeCompany.
// Licensed under the SOME License, see LICENSE.txt
plugins {
id 'all.shared.gradle.code-common-tasks' version '1.0.0'
id 'all.shared.gradle.project-style-checker' version '1.0.2'
id 'com.gradle.plugin-publish' version '0.10.0'
id 'groovy'
id 'jacoco'
}
repositories {
jcenter()
maven {
url 'https://dl.bintray.com/gmullerb/all.shared.gradle'
}
}
dependencies {
compile gradleApi()
testCompile gradleTestKit()
testCompile 'all.shared.gradle:spy-project-factory:+'
testCompile 'org.junit.jupiter:junit-jupiter-api:+'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:+'
}
final PLUGIN_SITE = 'plugin site'
// Uncomment this if the plugin should be also applied to this plugin project
// or remove if not required
// apply plugin: 'all.shared.gradle.some-gradle-plugin' // (and remember to rename all.shared.gradle.some-gradle-plugin.properties file)
// Plugin settings
//////////////////
pluginBundle {
website = PLUGIN_SITE
vcsUrl = PLUGIN_SITE
description = 'plugin description'
tags = ['plugin tag 1', 'plugin tag 2']
plugins {
thePlugin {
id = project.hasProperty('PLUGIN_ID')
? property('PLUGIN_ID')
: 'Set plugin id'
displayName = 'plugin title'
}
}
}
// Task settings
////////////////
test {
useJUnitPlatform()
}
jacocoTestCoverageVerification {
// jacocoTestCoverageVerification task settings
violationRules {
rule {
element = 'BUNDLE'
limit {
counter = 'BRANCH'
value = 'COVEREDRATIO'
minimum = 0.925
}
}
rule {
element = 'BUNDLE'
limit {
counter = 'INSTRUCTION'
value = 'COVEREDRATIO'
minimum = 0.875
}
}
}
// gradle task settings
shouldRunAfter jacocoTestReport
}
// Default task
///////////////
defaultTasks 'assessCommon', 'assessGradle', 'build'