forked from pszymczyk/embedded-consul
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
120 lines (105 loc) · 3.33 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
buildscript {
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.22.0'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'groovy'
id 'pl.allegro.tech.build.axion-release' version '1.12.0'
id 'java-library'
id 'maven-publish'
id 'signing'
}
scmVersion {
tag {
prefix = 'embedded-consul'
}
}
project.group = 'com.pszymczyk.consul'
project.version = scmVersion.version
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.5.13'
compile 'org.apache.ant:ant:1.10.8'
compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1'
compile 'org.slf4j:slf4j-api:1.7.30'
compileOnly 'junit:junit:4.13'
compileOnly 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testCompile 'ch.qos.logback:logback-classic:1.2.3'
testCompile 'com.ecwid.consul:consul-api:1.4.5'
testCompile 'org.spockframework:spock-core:1.3-groovy-2.5'
testCompile 'org.awaitility:awaitility:4.0.2'
testCompile 'org.awaitility:awaitility-groovy:4.0.2'
testCompile 'net.bytebuddy:byte-buddy:1.10.14'
}
configurations.all {
resolutionStrategy {
force 'org.apache.httpcomponents:httpclient:4.5.5'
}
}
test {
testLogging {
exceptionFormat 'full'
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.groovy
classifier = 'sources'
}
task javadocJar(type: Jar) {
from groovydoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'Embedded Consul'
description = 'Embedded Consul provides easy way to run Consul in integration tests.'
url = 'https://github.com/pszymczyk/embedded-consul'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'pszymczyk'
name = 'Pawel Szymczyk'
email = '[email protected]'
}
}
scm {
url = 'https://github.com/pszymczyk/embedded-consul'
connection = '[email protected]:pszymczyk/embedded-consul.git'
developerConnection = '[email protected]:pszymczyk/embedded-consul.git'
}
}
}
}
repositories {
maven {
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 project.findProperty('nexusUsername') ?: 'secured'
password project.findProperty('nexusPassword') ?: 'secured'
}
}
}
}
signing {
sign publishing.publications.mavenJava
}