-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
105 lines (84 loc) · 2.35 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'com.jfrog.bintray' version '1.7.3'
id 'net.researchgate.release' version '2.5.0'
id 'java'
id 'maven-publish'
}
group = 'com.palominolabs.http'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = JavaVersion.VERSION_1_7
ext {
depVersions = [
slf4j: '1.7.24',
guice: '4.1.0'
]
}
dependencies {
compile 'com.google.code.findbugs:jsr305:3.0.1'
compile "org.slf4j:slf4j-api:$depVersions.slf4j"
testRuntime "org.slf4j:slf4j-simple:$depVersions.slf4j"
testRuntime "org.slf4j:log4j-over-slf4j:$depVersions.slf4j"
testRuntime "org.slf4j:jcl-over-slf4j:$depVersions.slf4j"
testCompile "org.slf4j:jul-to-slf4j:$depVersions.slf4j"
compile 'org.eclipse.jetty:jetty-servlet:9.4.2.v20170220'
compile "com.google.inject.extensions:guice-servlet:$depVersions.guice"
compile "com.google.inject.extensions:guice-assistedinject:$depVersions.guice"
compile 'ch.qos.logback:logback-access:1.2.1'
testCompile 'org.apache.httpcomponents:httpclient:4.3.3'
testCompile 'org.easymock:easymock:3.3'
testCompile 'junit:junit:4.12'
}
configurations {
all*.exclude group: 'commons-logging', module: 'commons-logging'
}
repositories {
jcenter()
}
task sourceJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
publishing {
publications {
bintray(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
artifact sourceJar {
classifier 'sources'
}
artifact javadocJar {
classifier 'javadoc'
}
}
}
}
release {
tagTemplate = 'v${version}'
}
bintray {
user = rootProject.hasProperty('bintrayUser') ? rootProject.property('bintrayUser') : 'FIXME'
key = rootProject.hasProperty('bintrayApiKey') ? rootProject.property('bintrayApiKey') : 'FIXME'
publications = ['bintray']
pkg {
repo = 'maven'
licenses = ['Copyfree']
vcsUrl = 'https://github.com/palominolabs/jetty-http-server-wrapper'
name = 'com.palominolabs.http:jetty-http-server-wrapper'
version {
name = rootProject.property('version')
released = new Date()
if (project.isReleaseVersion) {
vcsTag = 'v' + project.version
}
}
}
}