-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·159 lines (136 loc) · 3.88 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
152
153
154
155
156
157
158
159
buildscript {
repositories {
mavenCentral {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
google {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
jcenter {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.1.RELEASE")
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.9.5')
classpath('pl.allegro.tech.build:axion-release-plugin:1.8.1')
}
}
plugins {
id "org.sonarqube" version "2.6.2"
id "org.owasp.dependencycheck" version "5.3.2"
}
apply plugin: 'pl.allegro.tech.build.axion-release'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
apply plugin: 'org.springframework.boot'
apply plugin: 'java'
apply plugin: 'idea'
jar {
baseName = 'yti-spring-mq'
}
scmVersion {
tag {
prefix = "v"
versionSeparator = ""
}
}
project.version = scmVersion.version
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
repositories {
mavenLocal()
mavenCentral {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
google {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
jcenter {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
// put your artifactory parameters to $HOME/.gradle/gradle.properties
if (project.hasProperty('artifactoryUrl')) {
maven {
url "$artifactoryUrl"
credentials {
username "$artifactoryUsername"
password "$artifactoryPassword"
}
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
springVersion = '4.2.3.RELEASE'
}
publishing {
publications {
maven(MavenPublication) {
groupId 'fi.vm.yti'
artifactId 'yti-spring-mq'
version project.version
pom.withXml {
asNode().appendNode('description', 'Common spring MQ configuration')
}
artifact jar
artifact sourceJar {
classifier "sources"
}
}
}
}
artifactory {
publish {
defaults {
publications('maven')
publishArtifacts = true
publishPom = true
}
}
}
dependencies {
compile "javax.servlet:javax.servlet-api:3.1.0"
compile "com.fasterxml.jackson.core:jackson-databind:2.8.6"
compile "org.springframework.security:spring-security-core:$springVersion"
compile "org.springframework.security:spring-security-config:$springVersion"
compile "org.springframework.security:spring-security-web:$springVersion"
compile "org.apache.httpcomponents:httpclient:4.5.3"
compile "com.google.code.findbugs:jsr305:3.0.2"
compile "org.jetbrains:annotations:15.0"
compile "fi.vm.yti:yti-spring-security:0.1.8"
compile 'org.springframework.boot:spring-boot-starter-activemq'
compile 'org.apache.activemq:activemq-broker'
compile 'com.github.ben-manes.caffeine:caffeine:2.8.1'
}
springBoot {
executable = true
backupSource = false
mainClass = 'fi.vm.yti.mq.service.YtiMQService.java'
}
bootRun {
systemProperties System.properties
jvmArgs = ["-Dspring.output.ansi.enabled=ALWAYS"]
}
bootRepackage {
}
sonarqube {
properties {
property "sonar.projectKey", "yti-terminology-api"
property "sonar.projectName", "yti-terminology-api"
property("sonar.dependencyCheck.reportPath", "$buildDir/reports/dependency-check-report.xml")
property("sonar.dependencyCheck.htmlReportPath", "$buildDir/reports/dependency-check-report.html")
}
}
dependencyCheck {
format = 'ALL'
autoUpdate = false
analyzers {
centralEnabled = false
}
data {
directory = System.getenv('OWASP_DATA_DIR')
}
}