-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
108 lines (93 loc) · 3.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
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
/*
* Copyright 2020 Pete Cornish
*
* 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.
*/
plugins {
id "com.github.johnrengelman.shadow" version "5.2.0"
}
group 'io.apiman.cli'
version '0.4.0'
apply plugin: 'java'
repositories {
mavenCentral()
}
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
ext {
version_jcommander = '1.72'
version_log4j = '2.13.0'
version_guava = '19.0'
version_retrofit = '1.9.0'
version_jackson_yaml = '2.10.2'
version_modelmapper = '2.3.6'
version_commons_beanutils = '1.9.3'
version_commons_lang = '3.4'
version_guice = '4.0'
version_apiman = '1.4.3.Final'
// test dependencies
version_junit = '4.12'
version_ducttape = '1.0.5'
version_mockito = '2.8.47'
version_restassured = '2.9.0'
version_systemrules = '1.16.0'
version_hamcrest = '2.0.0.0'
}
dependencies {
compile "com.beust:jcommander:$version_jcommander"
compile "org.apache.logging.log4j:log4j-core:$version_log4j"
compile "com.google.guava:guava:$version_guava"
compile "com.squareup.retrofit:retrofit:$version_retrofit"
compile "com.squareup.retrofit:converter-jackson:$version_retrofit"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$version_jackson_yaml"
compile "org.modelmapper:modelmapper:$version_modelmapper"
compile "commons-beanutils:commons-beanutils:$version_commons_beanutils"
compile "org.apache.commons:commons-lang3:$version_commons_lang"
compile "com.google.inject:guice:$version_guice"
// apiman deps
compile "io.apiman:apiman-gateway-engine-beans:$version_apiman"
compile "io.apiman:apiman-common-plugin:$version_apiman"
compile "io.apiman:apiman-manager-api-core:$version_apiman"
runtime "io.apiman:apiman-distro-data:$version_apiman"
compile "io.apiman:apiman-gateway-api-rest:$version_apiman"
// route slf4j events to log4j2
compile "org.apache.logging.log4j:log4j-slf4j-impl:$version_log4j"
testCompile "junit:junit:$version_junit"
testCompile "org.rnorth.duct-tape:duct-tape:$version_ducttape"
testCompile "org.mockito:mockito-core:$version_mockito"
testCompile "com.jayway.restassured:rest-assured:$version_restassured"
testCompile "com.github.stefanbirkner:system-rules:$version_systemrules"
testCompile "org.hamcrest:hamcrest-junit:$version_hamcrest"
}
jar {
manifest {
attributes("Main-Class": "io.apiman.cli.Cli")
}
}
shadowJar {
baseName = 'apiman-cli'
classifier = ''
version = ''
}
test {
useJUnit {
// exclude integration tests unless explicitly included
if (!project.hasProperty('integrationTest')) {
excludeCategories 'io.apiman.cli.common.IntegrationTest'
}
}
systemProperty "apiman.host", project.properties.get("apiman.host")
systemProperty "apiman.port", project.properties.get("apiman.port")
}