This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
105 lines (94 loc) · 3.79 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
buildscript {
ext {
springBootVersion = '2.2.1.RELEASE'
}
repositories {
mavenCentral()
gradlePluginPortal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('io.freefair.gradle:lombok-plugin:3.8.1')
}
}
ext {
springCloudVersion = 'Hoxton.RELEASE'
artifactory_url = hasProperty('artifactory_url') ? artifactory_url : System.getenv('artifactory_url')
artifactory_user = hasProperty('artifactory_user') ? artifactory_user : System.getenv('artifactory_user')
artifactory_api_key = hasProperty('artifactory_api_key') ? artifactory_api_key : System.getenv('artifactory_api_key')
artifactory_repo_key = hasProperty('artifactory_repo_key') ? artifactory_repo_key : System.getenv('artifactory_repo_key')
}
allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'io.freefair.lombok'
group = 'com.ibm.ram.guards'
version = '0.0.1-beta'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
dependencies {
dependency 'junit:junit:4.12'
dependency 'io.projectreactor:reactor-core:3.3.0.RELEASE'
dependency 'org.bouncycastle:bcprov-jdk15on:1.60'
dependency 'com.nimbusds:nimbus-jose-jwt:6.0.2'
dependency 'org.projectlombok:lombok:1.18.4'
dependency 'commons-codec:commons-codec:1.11'
dependency 'org.apache.commons:commons-lang3:3.8.1'
dependency 'com.google.guava:guava:26.0-jre'
dependency 'org.springframework.security.oauth:spring-security-oauth2:2.3.4.RELEASE'
dependency 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.1.RELEASE'
dependency 'org.springframework.security:spring-security-jwt:1.0.9.RELEASE'
dependencySet(group:'org.springframework.security', version: '5.1.2.RELEASE') {
entry 'spring-security-oauth2'
entry 'spring-security-oauth2-core'
entry 'spring-security-oauth2-jose'
entry 'spring-security-oauth2-client'
entry 'spring-security-oauth2-resource-server'
entry 'spring-security-core'
entry 'spring-security-config'
entry 'spring-security-web'
entry 'spring-security-crypto'
entry 'spring-security-openid'
}
dependencySet(group:'com.fasterxml.jackson.core', version: '2.10.0') {
entry 'jackson-core'
entry 'jackson-databind'
entry 'jackson-annotations'
}
dependencySet(group:'io.github.openfeign', version: '10.4.0') {
entry 'feign-core'
entry 'feign-jackson'
}
}
}
task allDeps(type: DependencyReportTask) {
outputFile = file("dependency.txt")
}
jar {
enabled = true
}
bootJar{
enabled = false
}
}
task publishToJfrog(dependsOn: [
'ibmid-resource-server-spring-boot-starter:publish',
'ibmid-client-spring-boot-starter:publish',
'ram-guards-authorization-server-spring-boot-starter:publish',
'ram-guards-entity:publish',
'ram-guards-helper:publish',
'ram-guards-resource-server-spring-boot-starter:publish',
'ram-guards-zuul-esw-provider-spring-cloud-starter:publish'
])