-
Notifications
You must be signed in to change notification settings - Fork 111
/
build.gradle
103 lines (86 loc) · 2.34 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id 'groovy'
id 'maven-publish'
id 'jacoco'
id 'pl.allegro.tech.build.axion-release' version '1.13.3'
id 'com.gradle.plugin-publish' version '0.15.0'
id "java-gradle-plugin"
id "io.github.gradle-nexus.publish-plugin" version '1.1.0'
}
sourceCompatibility = JavaVersion.VERSION_1_8
configurations {
provided
}
repositories {
mavenCentral()
google()
}
dependencies {
implementation gradleApi()
implementation localGroovy()
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
testImplementation(group: 'org.spockframework', name: 'spock-core', version: '2.0-M3-groovy-3.0') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
testImplementation 'com.android.tools.build:gradle:7.0.2'
testImplementation 'commons-io:commons-io:2.4'
testImplementation 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21'
}
scmVersion {
tag {
prefix = 'jacoco-android-release-'
}
versionCreator "versionWithBranch"
}
group = 'com.dicedmelon.gradle'
version = scmVersion.version
test {
testLogging {
exceptionFormat "full"
}
}
jacocoTestReport {
reports {
html.enabled false
xml.enabled true
}
}
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
publishing {
publications {
plugin(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
gradlePlugin {
plugins {
jacocoAndroidGradlePlugin {
id = 'com.dicedmelon.gradle.jacoco-android'
displayName = 'Plugin for simplifying JacocoReport configuration for Android projects'
description =
'A Gradle plugin that adds fully configured JacocoReport tasks for unit tests of each Android application and library project variant.'
implementationClass = 'com.dicedmelon.gradle.jacoco.android.JacocoAndroidPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/arturdm/jacoco-android-gradle-plugin'
vcsUrl = 'https://github.com/arturdm/jacoco-android-gradle-plugin'
tags = ['android', 'jacoco', 'testing', 'coverage', 'integrationtesting']
plugins {
jacocoAndroidGradlePlugin
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
}