This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
executable file
·107 lines (86 loc) · 2.95 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
104
105
106
107
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-clover-plugin:3.0.1'
}
}
plugins {
id 'eclipse'
id 'idea'
id 'groovy'
id 'application'
}
apply plugin: 'com.bmuschko.clover'
mainClassName = 'com.seriouslypro.pnpconvert.PNPConvert'
version = "2.0.0"
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://oss.sonatype.org/service/local/content/repositories/staging/"
}
}
task createProperties(dependsOn: processResources) {
doLast {
def resourcesDirectory = "src/main/resources".toString()
new File(resourcesDirectory).mkdirs()
new File("$resourcesDirectory/version.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
}
classes {
dependsOn createProperties
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:3.0.21'
implementation 'commons-codec:commons-codec:1.16.1'
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
testImplementation 'org.spockframework:spock-junit4:2.0-groovy-3.0'
testImplementation group: 'cglib', name: 'cglib-nodep', version: '2.2'
testImplementation group: 'org.objenesis', name: 'objenesis', version: '3.0.1'
testImplementation 'io.github.joke:spock-outputcapture:4.0.1'
testImplementation 'com.github.stefanbirkner:system-lambda:1.2.1'
implementation 'info.picocli:picocli:4.6.1'
implementation 'net.sf.opencsv:opencsv:2.3'
implementation 'commons-cli:commons-cli:1.3.1'
implementation 'net.glxn.qrgen:javase:2.0'
implementation 'org.apache.pdfbox:pdfbox:2.0.0-RC3'
implementation group: 'org.apache.xmlgraphics', name: 'batik-svggen', version: '1.17'
implementation group: 'org.apache.xmlgraphics', name: 'batik-dom', version: '1.17'
implementation 'com.google.api-client:google-api-client:2.2.0'
implementation 'com.google.oauth-client:google-oauth-client-jetty:1.34.1'
implementation 'com.google.apis:google-api-services-sheets:v4-rev20230227-2.0.0'
clover 'org.openclover:clover:4.5.2'
}
test {
useJUnitPlatform()
afterSuite { desc, result ->
if (!desc.parent) {
if (result.testCount == 0) {
throw new IllegalStateException("No tests were found. Failing the build")
}
}
}
}
clover {
// https://github.com/bmuschko/gradle-clover-plugin
testIncludes = ['**/*Spec.groovy']
excludes = [
// All the following cause: java.lang.UnsupportedOperationException: EmptyExpression.INSTANCE is immutable"
]
testExcludes = [
// All the following cause: java.lang.UnsupportedOperationException: EmptyExpression.INSTANCE is immutable"
]
report {
html = true
xml = true
}
}