This repository was archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathbuild.gradle
More file actions
120 lines (101 loc) · 4.72 KB
/
Copy pathbuild.gradle
File metadata and controls
120 lines (101 loc) · 4.72 KB
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
/*
* Modifications Copyright (c) 2019 BrowserUp, Inc.
*/
plugins {
id 'java-library'
id 'groovy'
}
archivesBaseName = 'browserup-proxy-rest'
ext {
jerseyVersion = '2.32'
swaggerVersion = '2.1.6'
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword")) {
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 'browserup-proxy-rest'
description 'BrowserUp Proxy - REST'
url 'https://github.com/browserup/browserup-proxy'
packaging 'jar'
scm {
connection 'scm:git:git@github.com:browserup/browserup-proxy.git'
developerConnection 'scm:git:git@github.com:browserup/browserup-proxy.git'
url 'https://github.com/browserup/browserup-proxy/tree/master/browserup-proxy-rest'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'browserup'
name 'BrowserUp, Inc.'
email 'developers@browserup.com'
}
}
}
}
}
}
dependencies {
implementation project(':browserup-proxy-core')
implementation "com.google.guava:guava:${guavaVersion}"
implementation "com.google.inject:guice:${guiceVersion}"
implementation "com.google.inject.extensions:guice-servlet:${guiceVersion}"
implementation "com.google.inject.extensions:guice-multibindings:${guiceVersion}"
implementation('com.google.sitebricks:sitebricks:0.8.11') {
exclude(group: 'org.jboss.netty', module: 'netty')
exclude(module: 'validation-api')
}
implementation "io.netty:netty-all:${nettyVersion}"
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
implementation "org.eclipse.jetty:jetty-server:${jettyVersion}"
implementation "org.eclipse.jetty:jetty-servlet:${jettyVersion}"
implementation "org.slf4j:jcl-over-slf4j:${slf4jVersion}"
implementation 'org.apache.commons:commons-lang3:3.11'
implementation "org.glassfish.jersey.containers:jersey-container-servlet-core:${jerseyVersion}"
implementation "org.glassfish.jersey.media:jersey-media-json-jackson:${jerseyVersion}"
implementation "org.glassfish.jersey.inject:jersey-hk2:${jerseyVersion}"
implementation "org.glassfish.jersey.ext:jersey-bean-validation:${jerseyVersion}"
implementation "io.swagger.core.v3:swagger-jaxrs2:${swaggerVersion}"
implementation "io.swagger.core.v3:swagger-core:${swaggerVersion}"
implementation "io.swagger.core.v3:swagger-integration:${swaggerVersion}"
implementation "io.swagger.core.v3:swagger-jaxrs2-servlet-initializer:${swaggerVersion}"
implementation "io.swagger.core.v3:swagger-models:${swaggerVersion}"
testImplementation project(':browserup-proxy-mitm')
testImplementation 'junit:junit:4.13.1'
testImplementation "org.apache.logging.log4j:log4j-api:${log4jVersion}"
testImplementation "org.apache.logging.log4j:log4j-core:${log4jVersion}"
testImplementation "org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}"
testImplementation 'org.codehaus.groovy:groovy-all:3.0.7'
testImplementation 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'org.hamcrest:hamcrest-library:2.2'
testImplementation 'org.mockito:mockito-core:3.10.0'
testImplementation 'org.seleniumhq.selenium:selenium-api:3.4.0'
testImplementation 'org.awaitility:awaitility:4.0.2'
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.24.1'
}
task createVersionProperties() {
doLast {
new File("$buildDir/resources/main/browserup-proxy-rest-version.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
}
build.finalizedBy(createVersionProperties)