-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
executable file
·112 lines (96 loc) · 2.72 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.24.14')
classpath('pl.allegro.tech.build:axion-release-plugin:1.13.3')
}
}
plugins {
id "org.sonarqube" version "3.3"
id "org.owasp.dependencycheck" version "7.4.4"
id 'com.github.ben-manes.versions' version '0.39.0'
}
apply plugin: 'pl.allegro.tech.build.axion-release'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
apply plugin: 'java'
apply plugin: 'idea'
jar {
baseName = 'yti-spring-security'
}
scmVersion {
tag {
prefix = "v"
versionSeparator = ""
}
}
project.version = scmVersion.version
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
repositories {
mavenCentral()
jcenter()
}
sourceCompatibility = 17
targetCompatibility = 17
ext {
springVersion = '6.0.1'
}
publishing {
publications {
maven(MavenPublication) {
groupId 'fi.vm.yti'
artifactId 'yti-spring-security'
version project.version
pom.withXml {
asNode().appendNode('description', 'Common spring security configuration')
}
artifact jar
artifact sourceJar {
classifier "sources"
}
}
}
}
artifactory {
publish {
defaults {
publications('maven')
publishArtifacts = true
publishPom = true
}
}
}
dependencies {
implementation "javax.servlet:javax.servlet-api:4.0.1"
implementation "com.fasterxml.jackson.core:jackson-databind:2.8.11.3"
implementation "org.springframework.security:spring-security-core:$springVersion"
implementation "org.springframework.security:spring-security-config:$springVersion"
implementation "org.springframework.security:spring-security-web:$springVersion"
implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation "org.jetbrains:annotations:15.0"
compileOnly 'jakarta.servlet:jakarta.servlet-api:6.0.0'
}
sonarqube {
properties {
property "sonar.projectKey", "yti-spring-security"
property "sonar.projectName", "yti-spring-security"
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')
}
}