This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
build.gradle
79 lines (68 loc) · 2.37 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
/*
* Modifications Copyright (c) 2019 BrowserUp, Inc.
*/
configurations.all {
resolutionStrategy {
// TODO Temporarily forcing guava to version 19 because upstream consumers
// do not support above 19, such as apache zookeeper curator framework.
// BUT ... Version 22 is needed for BrowserUpProxy, because
// it uses org.littleshoot.proxy.impl.ProxyToServerConnection.addressFor
// which calls com.google.common.net.HostAndPort.getHost(),
// which is not in 19.
// https://github.com/lightbody/BrowserMob-proxy/issues/638
// https://github.com/lightbody/BrowserMob-proxy/issues/398
// .....
// UPDATE Jan 21 2019: I'm upgrading to Guava 22, and will sort out upstream Minion
// conflicts later. BrowserUpDriver _should_ be allowed to use whatever libs it wants.
//resolutionStrategy.force 'com.google.guava:guava:*', 'com.google.guava:guava:22.0'
// UPDATE Jan 27, 2019: I forked org.littleshoot.proxy to Browserup and upgraded it to Guava 27.0.1-jre
resolutionStrategy.force 'com.google.guava:guava:*', "com.google.guava:guava:${guavaVersion}"
}
}
ext {
jerseyVersion = '2.29'
guiceVersion = '4.2.2'
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'signing'
group = 'com.browserup'
version = '3.0.0-SNAPSHOT'
sourceCompatibility=1.8
ext {
bcpVersion = '1.67'
guiceVersion = '4.2.3'
jacksonVersion = '2.12.0'
javassistVersion = '3.27.0-GA'
jettyVersion = '9.4.35.v20201120'
log4jVersion = '2.15.0'
nettyVersion = '4.1.55.Final'
littleProxyVersion = '2.0.1'
slf4jVersion = '1.7.30'
guavaVersion = '30.1-jre'
}
repositories {
mavenCentral()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/service/local/staging/deploy/maven2/" }
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
if (project.hasProperty("sign")) {
sign configurations.archives
}
}
}