-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
73 lines (64 loc) · 2.44 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
plugins {
id "org.sonarqube" version "5.1.0.4882"
id "io.freefair.lombok" version "8.10.2"
id 'java-library'
id 'maven-publish'
id 'jacoco'
}
sourceCompatibility = 17
repositories {
mavenCentral()
maven { url "https://repo.spring.io/release" }
//maven { url 'https://repo.spring.io/libs-milestone' }
maven { url "https://repo.spring.io/milestone" }
//maven { url "https://repo.spring.io/snapshot" }
}
ext {
springBootVersion = '3.3.5'
springCloudVersion = '2023.0.3'
}
dependencies {
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")
implementation "org.springframework.security.oauth:spring-security-oauth2:2.5.2.RELEASE"
implementation "org.springframework.security:spring-security-oauth2-client:6.3.4"
api "org.springframework.boot:spring-boot-starter-test"
api "org.springframework.security:spring-security-test"
api group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4'
implementation group: 'junit', name: 'junit'
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
compileOnly group: 'jakarta.servlet', name: 'jakarta.servlet-api', version: '6.1.0'
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ahunigel/${project.name}")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
maven(MavenPublication) {
from components.java
pom {
name = project.name
description = 'spring security oauth2 test toolkit'
url = "https://github.com/ahunigel/${project.name}"
developers {
developer {
id = 'ahunigel'
name = 'Nigel Zheng'
email = 'ahunigel@gmail.com'
}
}
scm {
connection = "scm:git:git@github.com:ahunigel/${project.name}.git"
url = "https://github.com/ahunigel/${project.name}"
}
}
}
}
}