-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
137 lines (115 loc) · 3.96 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
buildscript {
ext {
springBootVersion = '2.1.0.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'org.springframework.boot' version '2.1.0.RELEASE' apply false
id 'com.gradle.build-scan' version '1.16'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.2'
}
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'io.spring.dependency-management'
group = 'com.github.chriswhite199'
version = '0.0.2-SNAPSHOT'
archivesBaseName = 'feign-mock-mvc-test'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
springCloudVersion = 'Finchley.SR2'
lombokVersion = '1.18.2'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
implementation('org.springframework.cloud:spring-cloud-starter-openfeign')
implementation('org.springframework.boot:spring-boot-starter-test')
compileOnly('org.projectlombok:lombok')
testCompileOnly('org.projectlombok:lombok')
annotationProcessor('org.projectlombok:lombok')
testAnnotationProcessor('org.projectlombok:lombok')
}
dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
dependencies {
dependency "org.projectlombok:lombok:${lombokVersion}"
}
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
if (project.hasProperty('nexus')) {
apply plugin: 'maven'
apply plugin: 'signing'
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'Feign Mock MVC Client Implementations'
packaging 'jar'
artifactId 'feign-mock-mvc-test'
description 'Feign Client implementations for Spring Mock MVC usage'
url 'https://github.com/chriswhite199/spring-mockmvc-feignclient'
scm {
connection 'scm:git:https://github.com/chriswhite199/spring-mockmvc-feignclient.git'
developerConnection 'scm:git:https://github.com/chriswhite199/spring-mockmvc-feignclient.git'
url 'https://github.com/chriswhite199/spring-mockmvc-feignclient'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'chriswhite199'
name 'Chris White'
email '[email protected]'
}
}
}
}
}
}
}