-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
114 lines (98 loc) · 2.49 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
108
109
110
111
112
113
114
plugins {
id 'jacoco'
id 'java'
id 'maven-publish'
id 'org.jreleaser' version '1.15.0'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.jamiussiam'
artifactId = 'paddle-verifier'
from components.java
pom {
name = 'paddle-verifier'
description = 'A lighweight Paddle.com webhook verification library for Java.'
url = 'https://github.com/jamius19/paddle-verifier'
inceptionYear = '2020'
licenses {
license {
name = 'MIT'
url = 'https://spdx.org/licenses/MIT.html'
}
}
developers {
developer {
id = 'jamius19'
name = 'Jamius Siam'
}
}
scm {
connection = 'scm:git:https://github.com/jamius19/paddle-verifier.git'
developerConnection = 'scm:git:ssh://github.com/jamius19/paddle-verifier.git'
url = 'https://github.com/jamius19/paddle-verifier'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
jreleaser {
signing {
active = 'ALWAYS'
armored = true
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
stagingRepository('build/staging-deploy')
}
}
}
}
}
group = "com.jamiussiam"
version = "2.2"
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.0"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.6.0"
}
test {
useJUnitPlatform()
reports {
junitXml.required.set(true)
html.required.set(true)
}
}
jacoco {
toolVersion = "0.8.8"
}
jacocoTestReport {
dependsOn test
reports {
xml.required.set(true)
html.required.set(true)
csv.required.set(false)
}
}
tasks.test {
finalizedBy(tasks.jacocoTestReport)
}