forked from apache/pulsar-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
151 lines (135 loc) · 6.34 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
ext {
springBootVersion = '2.0.2.RELEASE'
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id "com.github.hierynomus.license" version "0.14.0"
id "com.moowork.node" version "1.1.0"
id "java"
id "eclipse"
id "idea"
}
repositories {
mavenCentral()
mavenLocal()
}
configurations {
testPlugins {}
}
dependencies {
}
task wrapper(type: Wrapper) {
gradleVersion = '4.8.1'
}
apply from: 'gradle/license.gradle'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'application'
mainClassName = 'org.apache.pulsar.manager.PulsarManagerApplication'
task licenseFormatNode(type: com.hierynomus.gradle.license.tasks.LicenseFormat) {
source = fileTree(dir: "src").include("**/*")
source = fileTree(dir: "front-end/src").include("**/*")
}
licenseFormat.dependsOn licenseFormatNode
task licenseCheckNode(type: com.hierynomus.gradle.license.tasks.LicenseCheck) {
source = fileTree(dir: "src").include("**/*")
}
// Add VERSION
task incrementVersion<<{
new File(projectDir, "VERSION").text = version
}
dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Finchley.SR2'
}
applyMavenExclusions = false
}
distributions {
main {
contents {
from 'src/main/resources/application.properties'
from 'src/main/resources/bkvm.conf'
}
}
}
distTar {
archiveName "pulsar-manager.tar"
}
jar {
manifest {
attributes(
'Main-Class': mainClassName
)
}
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter', version: springBootVersion
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springBootVersion
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-netflix-zuul', version: springBootVersion
compile group: 'org.mybatis.spring.boot', name: 'mybatis-spring-boot-starter', version: springMybatisVersion
compile group: 'com.github.pagehelper', name: 'pagehelper', version: pagehelperVersion
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version: springBootVersion
compile group: 'org.postgresql', name: 'postgresql', version: postgresqlVersion
compile (group: 'org.herddb', name: 'herddb-jdbc', version: herddbVersion) {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
compile group: 'javax.validation', name: 'validation-api', version: javaxValidationVersion
compile group: 'org.hibernate', name: 'hibernate-validator', 'version': hibernateValidatorVersion
compile group: 'io.jsonwebtoken', name: 'jjwt-api', version: jsonWebTokenApiVersion
compile group: 'io.jsonwebtoken', name: 'jjwt-impl', version: jsonWebTokenImplVersion
compile group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: jsonWebTokenImplVersion
compile group: 'com.github.pagehelper', name: 'pagehelper-spring-boot-starter', version: pageHelperVersion
compile group: 'com.google.guava', name: 'guava', version: guavaVersion
compile group: 'com.google.code.gson', name: 'gson', version: gsonVersion
compile group: 'org.apache.pulsar', name: 'pulsar-common', version: pulsarVersion
compile group: 'org.apache.pulsar', name: 'pulsar-client-admin-original', version: pulsarVersion
compile group: 'org.apache.pulsar', name: 'pulsar-client-auth-athenz', version: pulsarVersion
compile group: 'org.apache.pulsar', name: 'pulsar-client-auth-sasl', version: pulsarVersion
compile group: 'com.yahoo.athenz', name: 'athenz-zts-java-client', version: athenzVersion
compile group: 'io.springfox', name: 'springfox-swagger2', version: swagger2Version
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: swaggeruiVersion
compile group: 'org.apache.pulsar', name: 'pulsar-broker', version: pulsarVersion
compile group: 'commons-validator', name: 'commons-validator', version: commonsValidatorVersion
compile (group: 'org.bkvm', name: 'bkvm', version: bkvmVersion, ext: 'war', classifier:'war-no-libs') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
exclude group: 'org.herddb', module: '*'
}
compile (group: 'org.bkvm', name: 'bkvm', version: bkvmVersion, classifier:'classes') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
exclude group: 'org.herddb', module: '*'
}
compile (group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version: tomcatVersion)
compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet', version: jerseyVersion
compile group: 'org.glassfish.jersey.core', name: 'jersey-client', version: jerseyVersion
compile group: 'org.glassfish.jersey.inject', name: 'jersey-hk2', version: jerseyVersion
compile group: 'org.glassfish.jersey.media', name: 'jersey-media-json-jackson', version: jerseyVersion
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
compile group: 'org.springframework.security', name: 'spring-security-config'
compileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion
compileOnly group: 'org.springframework.boot', name: 'spring-boot-devtools', version: springBootVersion
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: springBootVersion
testCompile group: 'org.mockito', name: 'mockito-core', version: mockitoVersion
testCompile group: 'org.powermock', name: 'powermock-api-mockito2', version: apiMockitoVersion
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: mockitoJunit4Version
}