forked from pact-foundation/pact-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (81 loc) · 2.38 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
buildscript {
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'org.apache.commons:commons-text:1.5'
}
}
plugins {
id 'scala'
id 'application'
id 'maven-publish'
}
mainClassName = 'au.com.dius.pact.server.Server'
dependencies {
implementation project(":consumer")
implementation "ch.qos.logback:logback-core:${project.logbackVersion}",
"ch.qos.logback:logback-classic:${project.logbackVersion}",
"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.9.1"
implementation 'org.apache.commons:commons-io:1.3.2'
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-M4-groovy-3.0') {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
}
jar {
manifest.attributes 'Main-Class': mainClassName,
'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' ')
}
import org.apache.commons.text.StringEscapeUtils
publishing {
publications {
serverDistribution(MavenPublication) {
from components.java
artifact distZip
artifact distTar
pom {
name = project.name
packaging = 'jar'
description = StringEscapeUtils.escapeXml11(new File(projectDir, 'README.md').text)
url = 'https://github.com/DiUS/pact-jvm'
licenses {
license {
name = 'Apache 2'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
scm {
url = 'https://github.com/DiUS/pact-jvm'
connection = 'https://github.com/DiUS/pact-jvm.git'
}
developers {
developer {
id = 'thetrav'
name = 'Travis Dixon'
email = 'the.trav@gmail.com'
}
developer {
id = 'rholshausen'
name = 'Ronald Holshausen'
email = 'rholshausen@dius.com.au'
}
}
}
}
}
}
if (System.env.TRAVIS != 'true') {
signing {
sign publishing.publications.serverDistribution
}
}