/
build.gradle
67 lines (60 loc) · 2.5 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
buildscript {
ext {
jarPostfix = project.properties['jarPostfix'] ?: '20x'
projectBuildVersion = project.properties['projectBuildVersion'] ?: '2.0.0.BUILD-SNAPSHOT'
springBootVersion = project.properties['springBootVersion'] ?: '2.1.1.RELEASE'
oracleJdbcDriverVersion = project.properties['oracleJdbcDriverVersion'] ?: '12.2.0.1'
mssqlJdbcDriverVersion = project.properties['mssqlJdbcDriverVersion'] ?: '7.0.0.jre8'
db2JdbcDriverVersion = project.properties['db2JdbcDriverVersion'] ?: '4.19.26'
mysqlJdbcDriverVersion = project.properties['mysqlJdbcDriverVersion'] ?: '8.0.16'
springCloudVersion = project.properties['springCloudVersion'] ?: 'Greenwich.RC1'
springCloudServicesVersion = project.properties['springCloudVServicesersion'] ?: '2.0.2.RELEASE'
springCloudSkipperVersion = project.properties['springCloudSkipperVersion'] ?: '2.0.0.BUILD-SNAPSHOT'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
group = 'org.springframework.cloud.skipper.acceptance.app'
version = "${projectBuildVersion}"
sourceCompatibility = 1.8
jar {
archivesBaseName = "skipper-server-with-drivers${jarPostfix}"
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.springsource.org/libs-snapshot" }
maven { url "https://repo.springsource.org/libs-release" }
maven { url "https://repo.springsource.org/libs-milestone" }
maven {
url "https://repo.springsource.org/ext-private-local"
credentials {
username = System.getenv('ARTIFACTORY_USERNAME') ?: artifactoryUsername
password = System.getenv('ARTIFACTORY_PASSWORD') ?: artifactoryPassword
}
}
}
dependencies {
compile('org.springframework.cloud:spring-cloud-starter-skipper-server')
compile('org.flywaydb:flyway-core:5.2.4')
runtime("com.oracle.jdbc:ojdbc8:${oracleJdbcDriverVersion}")
runtime("mysql:mysql-connector-java:${mysqlJdbcDriverVersion}")
runtime("com.ibm.db2:db2jcc4:${db2JdbcDriverVersion}")
testCompile('org.springframework.boot:spring-boot-starter-test')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom "org.springframework.cloud:spring-cloud-skipper-dependencies:${springCloudSkipperVersion}"
mavenBom "io.pivotal.spring.cloud:spring-cloud-services-dependencies:${springCloudServicesVersion}"
}
}