-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
119 lines (97 loc) · 3.07 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
115
116
117
118
119
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.13.3'
id "io.freefair.lombok" version "6.2.0"
id "org.sonarqube" version "3.3"
}
apply plugin: 'java-library'
apply plugin: 'signing'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
group = "com.stepstone.inbucket"
project.version = scmVersion.version
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
test.useTestNG()
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'
testImplementation 'org.testng:testng:7.4.0'
testImplementation 'com.squareup.retrofit2:retrofit-mock:2.9.0'
}
jacoco {
toolVersion = "0.8.7"
}
jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
reports {
xml.enabled true
}
}
check.dependsOn jacocoTestReport
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'inbucket-client'
version = scmVersion.version
from components.java
pom {
name = 'Inbucket Client'
packaging = 'jar'
description = 'Java client for inbucket'
url = 'https://github.com/stepstone-tech/inbucket-java-client'
scm {
connection = 'scm:git:[email protected]:stepstone-tech/inbucket-java-client.git'
developerConnection = 'scm:git:[email protected]:stepstone-tech/inbucket-java-client.git'
url = 'https://github.com/stepstone-tech/inbucket-java-client'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id = 'tommywo'
name = 'Tomasz Wojtuń'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
name = "OSSRH"
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
failOnError = false
}
sonarqube {
properties {
property "sonar.projectKey", "stepstone-tech_inbucket-java-client"
property "sonar.organization", "stepstone-tech"
property "sonar.host.url", "https://sonarcloud.io"
}
}