forked from pact-foundation/pact-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (90 loc) · 2.67 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
plugins {
id 'au.com.dius.pact.kotlin-application-conventions'
id 'scala'
id 'maven-publish'
id 'signing'
}
group = 'au.com.dius.pact'
mainClassName = 'au.com.dius.pact.server.Server'
dependencies {
implementation project(':consumer')
implementation project(':core:pactbroker')
implementation 'ch.qos.logback:logback-core:1.4.4'
implementation 'ch.qos.logback:logback-classic:1.4.4'
implementation 'com.github.scopt:scopt_2.12:3.5.0'
implementation('com.typesafe.scala-logging:scala-logging_2.12:3.7.2') {
exclude group: 'org.scala-lang'
}
implementation( 'ws.unfiltered:unfiltered-netty-server_2.12:0.10.4') {
exclude module: 'netty-transport-native-kqueue'
exclude module: 'netty-transport-native-epoll'
}
implementation 'org.apache.commons:commons-io:1.3.2'
implementation 'org.apache.tika:tika-core'
implementation 'org.apache.commons:commons-lang3'
testImplementation 'org.apache.groovy:groovy'
testImplementation platform("org.spockframework:spock-bom:2.3-groovy-4.0")
testImplementation 'org.spockframework:spock-core'
testRuntimeOnly 'net.bytebuddy:byte-buddy'
}
jar {
manifest.attributes 'Main-Class': mainClassName,
'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' ')
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
serverDistribution(MavenPublication) {
from components.java
artifact distZip
artifact distTar
pom {
name = project.name
packaging = 'jar'
description = 'Stand-alone Pact server'
url = 'https://github.com/pact-foundation/pact-jvm'
licenses {
license {
name = 'Apache 2'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
scm {
url = 'https://github.com/pact-foundation/pact-jvm'
connection = 'https://github.com/pact-foundation/pact-jvm.git'
}
developers {
developer {
id = 'thetrav'
name = 'Travis Dixon'
email = '[email protected]'
}
developer {
id = 'rholshausen'
name = 'Ronald Holshausen'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
if (project.hasProperty('sonatypeUsername')) {
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
}
signing {
required { project.hasProperty('isRelease') }
sign publishing.publications.serverDistribution
}