Skip to content

Commit 280c77f

Browse files
authored
Merge pull request #140 from kakawait/develop
Release 1.0.2
2 parents f3afa3b + 62f19c8 commit 280c77f

File tree

10 files changed

+58
-21
lines changed

10 files changed

+58
-21
lines changed

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.0.2](https://github.com/kakawait/cas-security-spring-boot-starter/milestone/25) - 12 mar 2020
6+
7+
- Update dependencies for security fixes
8+
59
## [1.0.1](https://github.com/kakawait/cas-security-spring-boot-starter/milestone/24) - 31 jan 2020
610

711
- Happy new year :tada:
@@ -16,10 +20,10 @@ All notable changes to this project will be documented in this file.
1620
### Breaking changes
1721

1822
- Related to [#35 Remove cas-security-dynamic-service-resolver module](https://github.com/kakawait/cas-security-spring-boot-starter/issues/35), you must use [spring-security-cas-extension](https://github.com/kakawait/cas-security-spring-boot-starter/tree/master/spring-security-cas-extension) instead.
19-
- Related to [#33
23+
- Related to [#33
2024
Rename package com.kakawait.spring.boot.security.cas to com.kakawait.spring.boot.security.cas.autoconfigure](https://github.com/kakawait/cas-security-spring-boot-starter/issues/33), you must rewrite your `import` statements to append `.autoconfigure.`.
2125
- Property `security.cas.authorize-mode` has been renamed `security.cas.authorization.mode`
22-
- `CasHttpSecurityConfigurer.cas().configure(http)` will no secure paths, only configure CAS authentication
26+
- `CasHttpSecurityConfigurer.cas().configure(http)` will no secure paths, only configure CAS authentication
2327
- Autoconfiguration java class package was moved from `com.kakawait.spring.boot.security.cas` to `com.kakawait.spring.boot.security.cas.autoconfigure`
2428

2529
#### Spring boot 2 support breaking changes

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Spring Security CAS starter
22

33
[![Travis](https://img.shields.io/travis/kakawait/cas-security-spring-boot-starter.svg)](https://travis-ci.org/kakawait/cas-security-spring-boot-starter)
4-
[![Maven Central](https://img.shields.io/maven-central/v/com.kakawait/cas-security-spring-boot-starter.svg)](https://search.maven.org/#artifactdetails%7Ccom.kakawait%7Ccas-security-spring-boot-starter%7C1.0.1%7Cjar)
4+
[![Maven Central](https://img.shields.io/maven-central/v/com.kakawait/cas-security-spring-boot-starter.svg)](https://search.maven.org/#artifactdetails%7Ccom.kakawait%7Ccas-security-spring-boot-starter%7C1.0.2%7Cjar)
55
[![License](https://img.shields.io/github/license/kakawait/cas-security-spring-boot-starter.svg)](https://github.com/kakawait/cas-security-spring-boot-starter/blob/master/LICENSE.md)
66
[![Codecov](https://img.shields.io/codecov/c/github/kakawait/cas-security-spring-boot-starter.svg)](https://codecov.io/gh/kakawait/cas-security-spring-boot-starter)
77
[![SonarQube Tech Debt](https://img.shields.io/sonar/https/sonarcloud.io/com.kakawait%3Acas-security-spring-boot-parent/tech_debt.svg)](https://sonarcloud.io/dashboard?id=com.kakawait%3Acas-security-spring-boot-parent)
@@ -26,7 +26,7 @@ Add the Spring boot starter to your project
2626
<dependency>
2727
<groupId>com.kakawait</groupId>
2828
<artifactId>cas-security-spring-boot-starter</artifactId>
29-
<version>1.0.1</version>
29+
<version>1.0.2</version>
3030
</dependency>
3131
```
3232

cas-security-spring-boot-autoconfigure/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>com.kakawait</groupId>
1212
<artifactId>cas-security-spring-boot-parent</artifactId>
13-
<version>1.0.1</version>
13+
<version>1.0.2</version>
1414
</parent>
1515

1616
<name>Cas security spring boot autoconfigure</name>

cas-security-spring-boot-sample/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ RUN mvn clean install && mvn -f cas-security-spring-boot-sample/pom.xml clean in
55

66
FROM openjdk:8-jre-alpine
77
WORKDIR /app
8-
COPY --from=build /src/cas-security-spring-boot-sample/target/cas-security-spring-boot-sample-1.0.1.jar /app
8+
COPY --from=build /src/cas-security-spring-boot-sample/target/cas-security-spring-boot-sample-1.0.2.jar /app
99
ENV JAVA_OPTS=""
10-
CMD [ "sh", "-c", "java $JAVA_OPTS -jar /app/cas-security-spring-boot-sample-1.0.1.jar" ]
10+
CMD [ "sh", "-c", "java $JAVA_OPTS -jar /app/cas-security-spring-boot-sample-1.0.2.jar" ]

cas-security-spring-boot-sample/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
build:
2020
context: ../
2121
dockerfile: cas-security-spring-boot-sample/Dockerfile
22-
image: cas-security-spring-boot-sample:1.0.1
22+
image: cas-security-spring-boot-sample:1.0.2
2323
ports:
2424
- "8081:8081"
2525
- "5005"

cas-security-spring-boot-sample/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
<groupId>com.kakawait</groupId>
88
<artifactId>cas-security-spring-boot-sample</artifactId>
9-
<version>1.0.1</version>
9+
<version>1.0.2</version>
1010

1111
<name>Cas security spring boot sample</name>
1212

1313
<parent>
1414
<groupId>org.springframework.boot</groupId>
1515
<artifactId>spring-boot-starter-parent</artifactId>
16-
<version>2.2.4.RELEASE</version>
16+
<version>2.2.5.RELEASE</version>
1717
</parent>
1818

1919
<properties>
@@ -24,7 +24,7 @@
2424
<maven.compiler.source>1.8</maven.compiler.source>
2525
<maven.compiler.target>1.8</maven.compiler.target>
2626

27-
<jackson-databind.version>2.9.9.3</jackson-databind.version>
27+
<jackson-databind.version>2.10.3</jackson-databind.version>
2828
</properties>
2929

3030
<dependencyManagement>

cas-security-spring-boot-starter/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>com.kakawait</groupId>
1212
<artifactId>cas-security-spring-boot-parent</artifactId>
13-
<version>1.0.1</version>
13+
<version>1.0.2</version>
1414
</parent>
1515

1616
<name>Cas security spring boot starter</name>

pom.xml

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.kakawait</groupId>
88
<artifactId>cas-security-spring-boot-parent</artifactId>
99
<packaging>pom</packaging>
10-
<version>1.0.1</version>
10+
<version>1.0.2</version>
1111

1212
<name>Cas security spring boot parent</name>
1313
<description>Spring boot starter for Apereo CAS client fully integrated with Spring security</description>
@@ -49,23 +49,23 @@
4949
<maven.compiler.target>1.8</maven.compiler.target>
5050

5151
<!-- spring managed version -->
52-
<jackson.version>2.10.2</jackson.version>
53-
<jackson-databind.version>2.10.2</jackson-databind.version>
52+
<jackson.version>2.10.3</jackson.version>
53+
<jackson-databind.version>2.10.3</jackson-databind.version>
5454

5555
<!-- dependencies -->
56-
<spring-boot-dependencies.version>2.2.4.RELEASE</spring-boot-dependencies.version>
56+
<spring-boot-dependencies.version>2.2.5.RELEASE</spring-boot-dependencies.version>
5757

5858
<!-- provided dependencies -->
59-
<lombok.version>1.18.10</lombok.version>
59+
<lombok.version>1.18.12</lombok.version>
6060

6161
<!-- test dependencies -->
6262
<assertj-core.version>3.15.0</assertj-core.version>
63-
<mockito-core.version>3.2.4</mockito-core.version>
63+
<mockito-core.version>3.3.3</mockito-core.version>
6464

6565
<!-- plugins -->
66-
<jacoco-maven-plugin.version>0.8.4</jacoco-maven-plugin.version>
66+
<jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
6767
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
68-
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
68+
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
6969
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
7070
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
7171
</properties>

release.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ "$OSTYPE" == "darwin"* ]]; then
4+
sed() {
5+
gsed "$@"
6+
}
7+
date() {
8+
gdate "$@"
9+
}
10+
fi
11+
12+
new_version="${1}"
13+
14+
if [[ -z "${new_version}" ]]; then
15+
echo "Missing argument: version"
16+
exit 1
17+
fi
18+
19+
current_version="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
20+
echo "Current version is: ${current_version}"
21+
echo "New version will be: ${new_version}"
22+
echo
23+
read -p "Are you sure? " -r
24+
if [[ $REPLY =~ ^[Yy]$ ]]; then
25+
mvn versions:set "-DnewVersion=${new_version}" -DoldVersion=* -DgroupId=* -DartifactId=* -q -DforceStdout
26+
mvn -f cas-security-spring-boot-sample/pom.xml versions:set "-DnewVersion=${new_version}" -DoldVersion=* -DgroupId=* -DartifactId=* -q -DforceStdout
27+
mvn -f cas-security-spring-boot-sample/pom.xml versions:update-parent "-DparentVersion=${new_version}" -q -DforceStdout
28+
mvn -f spring-security-cas-extension/pom.xml versions:update-parent "-DparentVersion=${new_version}" -q -DforceStdout
29+
sed -i 's/\(cas-security-spring-boot-sample-\).*\.jar/\1'"${new_version}"'.jar/g' ./cas-security-spring-boot-sample/Dockerfile
30+
sed -i 's/\(image: cas-security-spring-boot-sample:\).*/\1'"${new_version}"'/g' ./cas-security-spring-boot-sample/docker-compose.yml
31+
sed -i 's/\(cas-security-spring-boot-starter%7C\).*%7Cjar/\1'"${new_version}"'%7Cjar/g' README.md
32+
sed -i 's/\(<version>\).*\(<\/version>\)/\1'"${new_version}"'\2/g' README.md
33+
fi

spring-security-cas-extension/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>com.kakawait</groupId>
1212
<artifactId>cas-security-spring-boot-parent</artifactId>
13-
<version>1.0.1</version>
13+
<version>1.0.2</version>
1414
</parent>
1515

1616
<name>Spring security cas extension</name>

0 commit comments

Comments
 (0)