Skip to content

Commit ac6573a

Browse files
Bhavini PatelJaisankar Alagappan
authored andcommitted
Upgrade to upstream version 75.22.0 [KETI-2677]
Signed-off-by: Jaisankar Alagappan <[email protected]>
2 parents fcb95ff + 893b4c5 commit ac6573a

File tree

144 files changed

+2313
-707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+2313
-707
lines changed

.github/dependabot.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,64 @@ updates:
7373
interval: daily
7474
time: "11:00"
7575
open-pull-requests-limit: 10
76+
77+
# Added dependabot configuration for 74.5.x branch
78+
- package-ecosystem: npm
79+
directory: "/uaa"
80+
schedule:
81+
interval: daily
82+
time: "11:00"
83+
target-branch: "74.5.x"
84+
open-pull-requests-limit: 10
85+
- package-ecosystem: gradle
86+
directory: "/statsd"
87+
schedule:
88+
interval: daily
89+
time: "11:00"
90+
target-branch: "74.5.x"
91+
open-pull-requests-limit: 10
92+
- package-ecosystem: gradle
93+
directory: "/"
94+
schedule:
95+
interval: daily
96+
time: "11:00"
97+
target-branch: "74.5.x"
98+
open-pull-requests-limit: 10
99+
ignore:
100+
- dependency-name: "org.apache.tomcat:*"
101+
update-types: ["version-update:semver-major"] # Stay in Tomcat 9 because it is still supported, likely until 2027 (https://endoflife.date/tomcat), and bumping to Tomcat 10 requires some major code changes
102+
- package-ecosystem: gradle
103+
directory: "/model"
104+
schedule:
105+
interval: daily
106+
time: "11:00"
107+
target-branch: "74.5.x"
108+
open-pull-requests-limit: 10
109+
- package-ecosystem: gradle
110+
directory: "/metrics-data"
111+
schedule:
112+
interval: daily
113+
time: "11:00"
114+
target-branch: "74.5.x"
115+
open-pull-requests-limit: 10
116+
- package-ecosystem: gradle
117+
directory: "/samples/api"
118+
schedule:
119+
interval: daily
120+
time: "11:00"
121+
target-branch: "74.5.x"
122+
open-pull-requests-limit: 10
123+
- package-ecosystem: gradle
124+
directory: "/server"
125+
schedule:
126+
interval: daily
127+
time: "11:00"
128+
target-branch: "74.5.x"
129+
open-pull-requests-limit: 10
130+
- package-ecosystem: gradle
131+
directory: "/samples/app"
132+
schedule:
133+
interval: daily
134+
time: "11:00"
135+
target-branch: "74.5.x"
136+
open-pull-requests-limit: 10

.github/workflows/depsreview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
- name: 'Checkout Repository'
1212
uses: actions/checkout@v3
1313
- name: 'Dependency Review'
14-
uses: actions/dependency-review-action@v1
14+
uses: actions/dependency-review-action@v2

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,8 @@ First run the UAA server as described above:
114114
From another terminal you can use curl to verify that UAA has started by
115115
requesting system information:
116116

117-
$ curl -H "Accept: application/json" localhost:8080/uaa/login
118-
{
119-
"timestamp":"2012-03-28T18:25:49+0100",
120-
"commit_id":"111274e",
121-
"prompts":{"username":["text","Username"],
122-
"password":["password","Password"]
123-
}
124-
}
117+
$ curl --silent --show-error --head localhost:8080/uaa/login | head -1
118+
HTTP/1.1 200
125119

126120
For complex requests it is more convenient to interact with UAA using
127121
`uaac`, the [UAA Command Line Client](https://github.com/cloudfoundry/cf-uaac).
@@ -144,15 +138,23 @@ To run the unit tests with docker:
144138

145139
### To run a single test
146140

141+
The default uaa unit tests (`./gradlew test`) use hsqldb.
142+
147143
Start by finding out which gradle project your test belongs to.
148144
You can find all project by running
149145

150146
$ ./gradlew projects
151147

152-
Then you can run
153-
148+
To run a specific test class, you can specify the module and the test class.
149+
154150
$ ./gradlew :<project name>:test --tests <TestClass>.<MethodName>
155151

152+
In this example, it's running only the
153+
JdbcScimGroupMembershipManagerTests tests in the cloudfoundry-identity-server module:
154+
155+
$ ./gradlew :cloudfoundry-identity-server:test \
156+
--tests "org.cloudfoundry.identity.uaa.scim.jdbc.JdbcScimGroupMembershipManagerTests"
157+
156158
or to run all tests in a Class
157159

158160
$ ./gradlew :<project name>:test --tests <TestClass>
@@ -223,7 +225,11 @@ Here are some ways for you to get involved in the community:
223225
[forks of this repository](https://github.com/cloudfoundry/uaa). If you
224226
want to contribute code this way, please reference an existing issue
225227
if there is one as well covering the specific issue you are
226-
addressing. Always submit pull requests to the "develop" branch.
228+
addressing. Always submit pull requests to the "develop" branch.
227229
We strictly adhere to test driven development. We kindly ask that
228230
pull requests are accompanied with test cases that would be failing
229231
if ran separately from the pull request.
232+
* After you create the pull request, you can check the code metrics yourself
233+
in [Github Actions](https://github.com/cloudfoundry/uaa/actions) and on [Sonar](https://sonarcloud.io/project/pull_requests_list?id=cloudfoundry-identity-parent).
234+
The goal for new code should be close to 100% tested and clean code:
235+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cloudfoundry-identity-parent&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cloudfoundry-identity-parent)

build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ buildscript {
88

99
repositories {
1010
mavenCentral()
11+
gradlePluginPortal()
1112
maven {
1213
url("https://plugins.gradle.org/m2/")
1314
}
@@ -18,7 +19,6 @@ buildscript {
1819

1920
dependencies {
2021
classpath(libraries.cargoGradlePlugin)
21-
classpath(libraries.prodepsGradlePlugin)
2222
classpath(libraries.asciidoctorGradlePlugin)
2323
classpath(libraries.springDependencyMangementGradlePlugin)
2424
classpath(libraries.springBootGradlePlugin)
@@ -42,9 +42,9 @@ apply(from: "dependencies.gradle")
4242
def applicationPort = project.hasProperty('port') ? project.getProperty('port').toInteger() : 8080
4343

4444
apply(plugin: "com.bmuschko.cargo")
45+
apply(plugin: "war")
4546

4647
allprojects {
47-
apply(plugin: "propdeps")
4848
apply(plugin: "io.spring.dependency-management")
4949
apply(plugin: "org.gradle.test-retry")
5050
apply(plugin: "org.barfuin.gradle.jacocolog")
@@ -57,8 +57,6 @@ allprojects {
5757
}
5858
}
5959

60-
configurations.provided.transitive = false
61-
6260
repositories {
6361
mavenCentral()
6462
maven {
@@ -217,8 +215,8 @@ cargo {
217215
rmiPort = applicationPort + 10
218216

219217
jvmArgs = ""
220-
jvmArgs = String.format("%s -DCLOUDFOUNDRY_CONFIG_PATH=%s", jvmArgs, file("scripts/cargo").getAbsolutePath())
221-
jvmArgs = String.format("%s -Dlogging.config=%s", jvmArgs, file("scripts/cargo/log4j2.properties").getAbsolutePath())
218+
jvmArgs = String.format("%s -DCLOUDFOUNDRY_CONFIG_PATH='%s'", jvmArgs, file("scripts/cargo").getAbsolutePath())
219+
jvmArgs = String.format("%s -Dlogging.config='%s'", jvmArgs, file("scripts/cargo/log4j2.properties").getAbsolutePath())
222220
jvmArgs = String.format("%s -Dstatsd.enabled=true", jvmArgs)
223221
if (System.getProperty("spring.profiles.active", "").split(',').contains("debug")) {
224222
jvmArgs = String.format("%s -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", jvmArgs)

dependencies.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ ext {
44
}
55

66
// Versions we're overriding from the Spring Boot Bom
7-
ext["mariadb.version"] = "2.3.0"
8-
ext["flyway.version"] = "5.2.4"
7+
ext["mariadb.version"] = "2.7.4"
8+
ext["flyway.version"] = "7.15.0"
99
ext['log4j2.version'] = '2.17.1' // this pinning can be removed when we bump to a spring boot version that has 2.15.0+ (due to CVE https://github.com/advisories/GHSA-jfh8-c2jp-5v3q in log4j < 2.15.0)
1010

1111
// Versions shared between multiple dependencies
1212
versions.aspectJVersion = "1.9.4"
1313
versions.apacheDsVersion = "2.0.0.AM26"
1414
versions.bouncyCastleVersion = "1.71"
1515
versions.hamcrestVersion = "2.2"
16-
versions.springBootVersion = "2.6.8"
16+
versions.springBootVersion = "2.7.2"
1717
versions.springSecurityJwtVersion = "1.1.1.RELEASE"
1818
versions.springSecurityOAuthVersion = "2.5.2.RELEASE"
1919
versions.springSecuritySamlVersion = "1.0.10.RELEASE"
20-
versions.springVersion = "5.3.20"
21-
versions.tomcatCargoVersion = "9.0.63"
20+
versions.springVersion = "5.3.22"
21+
versions.tomcatCargoVersion = "9.0.65"
2222
versions.guavaVersion = "31.1-jre"
2323

2424
// Dependencies (some rely on shared versions, some are shared between projects)
@@ -34,7 +34,7 @@ libraries.bouncyCastlePkix = "org.bouncycastle:bcpkix-jdk18on:${versions.bouncyC
3434
libraries.bouncyCastleProv = "org.bouncycastle:bcprov-jdk18on:${versions.bouncyCastleVersion}"
3535
libraries.commonsIo = "commons-io:commons-io:2.11.0"
3636
libraries.dumbster = "dumbster:dumbster:1.6"
37-
libraries.eclipseJgit = "org.eclipse.jgit:org.eclipse.jgit:6.1.0.202203080745-r"
37+
libraries.eclipseJgit = "org.eclipse.jgit:org.eclipse.jgit:6.2.0.202206071550-r"
3838
libraries.flywayCore = "org.flywaydb:flyway-core"
3939
libraries.greenmail = "com.icegreen:greenmail:1.6.9"
4040
libraries.googleAuth = "com.warrenstrange:googleauth:1.5.0"
@@ -116,13 +116,12 @@ libraries.zxing = "com.google.zxing:javase:3.5.0"
116116
libraries.nimbusJwt = "com.nimbusds:nimbus-jose-jwt:8.23"
117117
libraries.xmlSecurity = "org.apache.santuario:xmlsec:3.0.0"
118118
libraries.orgJson = "org.json:json:20220320"
119-
libraries.spingSamlEsapiDependencyVersion = "org.owasp.esapi:esapi:2.4.0.0"
119+
libraries.spingSamlEsapiDependencyVersion = "org.owasp.esapi:esapi:2.5.0.0"
120120

121121
// gradle plugins
122122
libraries.testRetryPlugin = "org.gradle:test-retry-gradle-plugin:1.3.1"
123123
libraries.asciidoctorGradlePlugin = "org.asciidoctor:asciidoctor-gradle-plugin:1.6.1"
124124
libraries.cargoGradlePlugin = "com.bmuschko:gradle-cargo-plugin:2.8.0"
125-
libraries.prodepsGradlePlugin = "io.spring.gradle:propdeps-plugin:0.0.10.RELEASE"
126125
libraries.springBootGradlePlugin = "org.springframework.boot:spring-boot-gradle-plugin:${versions.springBootVersion}"
127126
libraries.springDependencyMangementGradlePlugin = "io.spring.gradle:dependency-management-plugin"
128127
libraries.gradleJcocoPlugin = "gradle.plugin.org.barfuin.gradle.jacocolog:gradle-jacoco-log:1.2.4"

gradle/wrapper/gradle-wrapper.jar

618 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)