-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (88 loc) · 3.18 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
106
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'org.kinotic'
version '4.5.1'
sourceCompatibility = '21'
repositories {
mavenCentral()
}
ext {
apacheCommonsVersion='3.17.0'
logbackVersion='1.5.8'
nettyVersion='4.1.115.Final'
vertxVersion='4.5.10'
}
dependencies {
implementation "io.vertx:vertx-core:${vertxVersion}"
implementation "io.vertx:vertx-web:${vertxVersion}"
// We override netty to use the latest version, allowing us to patch security issues
implementation "io.netty:netty-buffer:${nettyVersion}"
implementation "io.netty:netty-codec-http2:${nettyVersion}"
implementation "io.netty:netty-codec-http:${nettyVersion}"
implementation "io.netty:netty-common:${nettyVersion}"
implementation "io.netty:netty-handler-proxy:${nettyVersion}"
implementation "io.netty:netty-handler:${nettyVersion}"
implementation "io.netty:netty-resolver-dns:${nettyVersion}"
implementation "io.netty:netty-resolver:${nettyVersion}"
implementation "io.netty:netty-transport:${nettyVersion}"
implementation "ch.qos.logback:logback-core:${logbackVersion}"
implementation "ch.qos.logback:logback-classic:${logbackVersion}"
implementation "org.apache.commons:commons-lang3:${apacheCommonsVersion}"
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Vert.x STOMP Server'
description = 'A simplified STOMP server for use with Vert.x'
url = 'https://github.com/Kinotic-Foundation/vertx-stomp-lite'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'Kinotic Developers'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/Kinotic-Foundation/vertx-stomp-lite.git'
developerConnection = 'scm:git:https://github.com/Kinotic-Foundation/vertx-stomp-lite.git'
url = 'https://github.com/Kinotic-Foundation/vertx-stomp-lite'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv('MAVEN_USERNAME')
password = System.getenv('MAVEN_PASSWORD')
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}