forked from spring-projects/spring-security-kerberos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (75 loc) · 2.78 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
import org.springframework.boot.gradle.plugin.SpringBootPlugin
plugins {
id "checkstyle"
id "io.spring.javaformat" version "0.0.25"
id 'io.spring.nohttp' version '0.0.5.RELEASE'
id 'org.springframework.boot' version '2.7.7'
}
repositories {
mavenCentral()
maven {
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
group = 'io.github.openprojectx.security.kerberos'
description = 'Spring Security Kerberos Samples Common'
allprojects {
apply plugin: 'checkstyle'
apply plugin: 'io.spring.javaformat'
repositories {
mavenCentral()
maven {
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:0.0.25"
}
}
def sampleServerProjects() {
subprojects.findAll { project ->
project.name.contains('sec-server') && project.name != 'spring-security-kerberos-samples-common'
&& project.name != 'sec-server-spnego-webflux'
&& project.name != 'sec-server-spnego-web'
}
}
def sampleClientProjects() {
subprojects.findAll { project ->
project.name.contains('sec-client')
}
}
configure(sampleServerProjects()) {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
// don't publish boot packaged samples
tasks.findByPath("artifactoryPublish")?.enabled = false
dependencies {
implementation(platform("io.github.openprojectx.security.kerberos:spring-security-kerberos-bom:5.7.6-SNAPSHOT"))
implementation platform(SpringBootPlugin.BOM_COORDINATES)
implementation project(':spring-security-kerberos-samples-common')
implementation 'io.github.openprojectx.security.kerberos:spring-security-kerberos-client'
implementation 'io.github.openprojectx.security.kerberos:spring-security-kerberos-web'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
}
}
configure(sampleClientProjects()) {
apply plugin: "org.springframework.boot"
apply plugin: 'java'
// don't publish boot packaged samples
tasks.findByPath("artifactoryPublish")?.enabled = false
dependencies {
implementation(platform("io.github.openprojectx.security.kerberos:spring-security-kerberos-bom:5.7.6-SNAPSHOT"))
implementation platform(SpringBootPlugin.BOM_COORDINATES)
implementation "io.github.openprojectx.security.kerberos:spring-security-kerberos-client"
implementation "org.springframework.boot:spring-boot-starter"
testImplementation "org.springframework:spring-test"
// testImplementation "org.hamcrest:hamcrest-core:$hamcrestVersion"
// testImplementation "org.hamcrest:hamcrest-library:$hamcrestVersion"
}
}
subprojects {
task allDeps(type: DependencyReportTask) {}
}