Skip to content

Commit aab1fa5

Browse files
authored
Merge pull request #4 from spt-development/feature/spring-update-2.6.6
Updated dependencies to align with Spring Boot 2.6.6 and fully automa…
2 parents 5d6ee3b + e95b2db commit aab1fa5

File tree

6 files changed

+103
-24
lines changed

6 files changed

+103
-24
lines changed

.travis.yml

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,56 @@
11
language: java
22

33
jdk:
4-
- openjdk8
4+
- openjdk17
5+
6+
# Need a full git clone in order to be able to tag the release
7+
git:
8+
clone: false
9+
10+
install:
11+
- git clone https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
12+
- cd $TRAVIS_REPO_SLUG
13+
- git checkout $TRAVIS_BRANCH
14+
- POM_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec | sed -e 's/-SNAPSHOT//')
15+
- openssl aes-256-cbc -K $encrypted_044baa266d1a_key -iv $encrypted_044baa266d1a_iv -in .travis/gpg.asc.enc -out .travis/gpg.asc -d
16+
- gpg --fast-import .travis/gpg.asc
17+
18+
env:
19+
global:
20+
# Environment variables referenced in .travis/maven-settings.xml. To encrypt and escape values correctly, run the following
21+
# command and enter ENV_VAR=value when prompted:
22+
# read -r && travis encrypt "$(printf %q "$REPLY")"
23+
- secure: rsRxCN87eU1b43kcPkaAMxF4gEvSl3+dthoNGtmjD53ID7BTooopykUAsP4sMOc62fwSDiUMeqbTc4hNgmFvsJK8z7hMzHQRjNlza0Yy/JCzgbEAQrvYUtyIaEd/3OM27nQYkypGhc/w90+aWGxPQNoLRHrBMzI85Fh/9qLq4eISQCjskNZ3CWRfCJsPb9h11pnjVhwYoCXm6gUcyKmgui7l76d1AC4pUfIB0BCCrIY07+uf5zhYD5fJ3VyBIQodgp2PhpDUoFE5W9J8mNdBEmMylEwja1M2RkTCnHUyyFv1AOj5y9DsnFUQmJn/tJFpqpZ4nbeMSjYnhzEIs+1w5DptsaYATuAoPvH4q5Xrj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L420OsIKyeRDzAJsirSFflwaxEBR3TS/4Cve+o/VmzQF3HfWAuR5OEd5BYdjo3Sa9X7thqRGtPNPTVJJ777Tyabszm/7iElcrBCA2DyDLa853ohinUkgn03OwMwRhgx3vWr0jx7JXlTsZprcheeJgx/qkKtdbMff4d9HM+qox6zn4OO3au0ZhWwyXSeietDLO5hEJoc1BNTM+aA0Fe91v4qq8UbNlM6Zt1/Nd+0VO6RwY=
27+
- secure: xKbBdYjtcduhU76JOBHYpb6gAb0XJWi69o8+igLpU9iYz8wOljL06Z9UW0d4U3mgTah+QPBawZcKnFNMeUDy+B7ShLRh3C4hnOkUIxNv7IRQ7S+OGbF62EzS9CNyc5A1Rv1zBP9dXnmfyJq/F0Lta/Gi+ftp5ND3FEaFbvuSCCBC70i8Q2Xp9S1gPzyY2ByibAEjMm/Nu9rxKpx5Xs1D/JLqaVCA8PryGl3AbMAA7vAoY2s4/parvtaZNaE9GZBy2hxEom0/1dZiJ2/dTaQUk8gLMZ9NU1zuXfMcYU8b8GsBl1GvFwOTP8qGWDXkTSZ5itZDRTeIHfCNLCBS+XOv3RXQCxLiGhoreCHATXodEpEf6Nj/xtd5JmyV0MURgYtayk4G6dnq5cilXwZ2cY+RfCbw6nmPW7WZwNqhRyPTIhWVYpsvKbyCbpeWujGduUCjKuvekfTCiXRfvwfu6cIlyWXhoJZfgLCXeOm4pwNrMpE0rTF+6au6ZXTSDlmlpDqUTI50u8nTr9fIK/+DBu1d4350zZ1Q5qP2VRrDv68JueYJrPNOfSdlUW6gRi0SpWGvxcyK6JBRnw2o7aCl7HgO9CSnJ7lNqsl7iVJTZdbXkIiPoVmBtNcZpX8iE/0nxrTEjhpzz+SHJiSurQaFsNXlyVvKF2yyfTIGOsZMaAkiqJc=
528

629
script:
7-
- mvn test -B
8-
- mvn org.pitest:pitest-maven:mutationCoverage
30+
- mvn clean install -B
31+
- mvn org.pitest:pitest-maven:mutationCoverage -B
932

1033
before_deploy:
11-
- POM_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
34+
# Set tag to be used by releases provider
35+
- export TRAVIS_TAG=$POM_VERSION
1236

13-
# Releases config copied from https://docs.travis-ci.com/user/deployment/releases/ and secure key generated by following
14-
# https://stackoverflow.com/questions/25302518/travis-ci-setup-releases-with-github-token#answer-57032190
1537
deploy:
16-
provider: releases
17-
api_key:
18-
secure: tNrgQeaH6gn+JH2IV7DqJ3oaGgQYMvku8mAmuKZMqg/TLkWbopeaaO9SK83SOOqnj9QL25rSan/THFBtofa8nd3SACGP0+eAzhNRyRHZ7HET/Na2BPS2uhcDMsKSv27dv16BXqRDSs/rAh76CKg54KlU5Oik/zoET78/KMawuREpgojT41znCrFfNNvYEo6wmkBxE2P3g4Wdrd8nmcHGkyHbIV0NQOcE0myhbR0wAzqoydavCiWBwSE1m1GjDaejJaq1Od/HL4WrjCkBptx4qldOZG866lFA037CHUAkBWu8Rs8n8AlMgY22gykzQwriX+Xy8+/f05/Oj+ldoAr8IewzmM1JohwHmJpnaq5TLzfLYIOxjEhne2SvUMcXIHPYtWQ3bvvsXBxPnWdiXz0HWgNF2gC2dJrBlaarfI+Vcw1mCsir0fJFWUIStvLHIlSnK5DNbU5MQ1kJrHP01YwOTLTVYxFNWgxT+9eGUMrvPgyskflya5iRTJdkNWde3czl4XdEQ+XxuYs8v6EBliMYD3nqf6/K/37E1AUOh//QXFtZCna8Rkbfhuc/PWAA8Us7XtAZDkTAh8YF2LrYh9pw7U0wxunD1zLCpB4lq8KjqaAP81lRXEfjq/IvjpU0Qw+JLSH54JO9yuxqq6kyCCWbzt3s5weP3Vl7IY4Oaobriv4=
19-
file:
20-
- "spt-development-logging-spring-boot-autoconfigure/target/spt-development-logging-spring-boot-autoconfigure-${POM_VERSION}.jar"
21-
- "spt-development-logging-spring-boot-starter/target/spt-development-logging-spring-boot-starter-${POM_VERSION}.jar"
22-
skip_cleanup: true
23-
on:
24-
tags: true
38+
# For any checkin to main branch, create a final version, tag it and push the artifacts to Sonatype
39+
- provider: script
40+
skip_cleanup: true
41+
script:
42+
mvn --settings .travis/maven-settings.xml release:prepare release:perform -DskipTests -Prelease -B
43+
on:
44+
branch: main
45+
46+
# Releases config copied from https://docs.travis-ci.com/user/deployment/releases/ and secure key generated by following
47+
# https://stackoverflow.com/questions/25302518/travis-ci-setup-releases-with-github-token#answer-57032190
48+
- provider: releases
49+
api_key:
50+
secure: NUJjBX9TCNIgsT1fLOQTHrkflMos6ZLSa9Y1S55EaFlxQt2Rkl1NJOYSRLyKipehUifhNV/81nZInH5d6svBa8ag60uwK1xuaVirPI8VFsomKxDavQWpiDBISYr4oo/HqDzoBRM6QzvmETBf1xzBBJjO+9GIIpE4DiBUC8FzvyOIhMwVrMvTB6sjW4biF+cicDjvWP3Xo9R7OWyZ0dOYqoWfCHyViG39kithXFJa2bZwcoxsC2ViIrUGVTfsg9hrON+EKGrHxM89GV4VjqDodomMlXgmRSKL941BCpANInTGbSPS+QAhRjH0pKbml239bQLMF1kdAXJUELm2Ropn27fYdJxJjK+QdibudL1YasrNhcYxAfWRRK/dXE7/2LpoYu7mjUfMvWzEuOWojDrbSzitL/0M/1++vSveuZEDAjNV1UYk/Wxr4iO0U1xat6RU+iLzW1gqXsfIAQun1xaGmyeMsYY5NBCky6hBvpdlXhVgSjqGOu+EMt3mdrI/XCMmOp3QagjXGSZlMG9Fp94HmodSH3M6YQ0Kbvmm/58kI2r3xc3xPzYcDLsz4wYkAeEPe1Ik9zZi+dcxWwhUfr/3eGEMRRrITjy01Y9oC6YOcGUnc/lLUDRRaggcS77XNYQ/WDY105psJ0c53i0GrFzZHed3jeDeubrjLBdnNjKRm2s=
51+
file:
52+
- "spt-development-logging-spring-boot-autoconfigure/target/spt-development-logging-spring-boot-autoconfigure-${POM_VERSION}.jar"
53+
- "spt-development-logging-spring-boot-starter/target/spt-development-logging-spring-boot-starter-${POM_VERSION}.jar"
54+
skip_cleanup: true
55+
on:
56+
branch: main

.travis/gpg.asc.enc

3.72 KB
Binary file not shown.

.travis/maven-settings.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<servers>
7+
<server>
8+
<id>ossrh</id>
9+
<username>${env.OSSRH_USERNAME}</username>
10+
<password>${env.OSSRH_PASSWORD}</password>
11+
</server>
12+
<server>
13+
<id>github.com</id>
14+
<username>${env.GITHUB_USERNAME}</username>
15+
<password>${env.GITHUB_TOKEN}</password>
16+
</server>
17+
</servers>
18+
<profiles>
19+
<profile>
20+
<id>ossrh</id>
21+
<activation>
22+
<activeByDefault>true</activeByDefault>
23+
</activation>
24+
<properties>
25+
<gpg.executable>gpg</gpg.executable>
26+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
27+
</properties>
28+
</profile>
29+
</profiles>
30+
</settings>

pom.xml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.spt-development</groupId>
66
<artifactId>spt-development-logging-spring-boot</artifactId>
7-
<version>2.0.2</version>
7+
<version>2.0.3-SNAPSHOT</version>
88

99
<name>logging-spring-boot</name>
1010
<description>Library for integrating spt-development/spt-development-logging-spring into a Spring Boot application.</description>
@@ -34,13 +34,12 @@
3434
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3535
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3636

37-
<maven.compiler.source>8</maven.compiler.source>
38-
<maven.compiler.target>8</maven.compiler.target>
37+
<maven.compiler.release>8</maven.compiler.release>
3938

4039
<!-- Dependency versions -->
41-
<spring-boot.version>2.5.6</spring-boot.version>
42-
<spt-cid.version>2.0.0</spt-cid.version>
43-
<spt-logging-spring.version>2.0.2</spt-logging-spring.version>
40+
<spring-boot.version>2.6.6</spring-boot.version>
41+
<spt-cid.version>2.0.11</spt-cid.version>
42+
<spt-logging-spring.version>2.0.3</spt-logging-spring.version>
4443

4544
<!-- Plugin versions -->
4645
<checkstyle-maven-plugin.version>3.1.2</checkstyle-maven-plugin.version>
@@ -52,9 +51,10 @@
5251
<maven-enforcer-plugin.version>3.0.0</maven-enforcer-plugin.version>
5352
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
5453
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
54+
<maven-release-plugin.version>3.0.0-M5</maven-release-plugin.version>
5555
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
5656
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
57-
<nexus-staging-plugin.version>1.6.8</nexus-staging-plugin.version>
57+
<nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
5858
<pitest-maven.version>1.7.2</pitest-maven.version>
5959
<spotbugs.version>4.2.3</spotbugs.version>
6060
<versions-maven-plugin.version>2.8.1</versions-maven-plugin.version>
@@ -283,6 +283,15 @@
283283
<artifactId>versions-maven-plugin</artifactId>
284284
<version>${versions-maven-plugin.version}</version>
285285
</plugin>
286+
<plugin>
287+
<artifactId>maven-release-plugin</artifactId>
288+
<version>${maven-release-plugin.version}</version>
289+
<configuration>
290+
<goals>deploy</goals>
291+
<scmCommentPrefix>[skip travis] [maven-release-plugin] </scmCommentPrefix>
292+
<tagNameFormat>@{project.version}</tagNameFormat>
293+
</configuration>
294+
</plugin>
286295
</plugins>
287296
</pluginManagement>
288297
</build>

spt-development-logging-spring-boot-autoconfigure/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.spt-development</groupId>
99
<artifactId>spt-development-logging-spring-boot</artifactId>
10-
<version>2.0.2</version>
10+
<version>2.0.3-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>spt-development-logging-spring-boot-autoconfigure</artifactId>
@@ -114,6 +114,10 @@
114114
</configuration>
115115
<!-- Version defined in parent pluginManagement section -->
116116
</plugin>
117+
<plugin>
118+
<artifactId>maven-release-plugin</artifactId>
119+
<!-- Version and configuration etc defined in parent pluginManagement section -->
120+
</plugin>
117121
</plugins>
118122
<resources>
119123
<resource>

spt-development-logging-spring-boot-starter/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.spt-development</groupId>
99
<artifactId>spt-development-logging-spring-boot</artifactId>
10-
<version>2.0.2</version>
10+
<version>2.0.3-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>spt-development-logging-spring-boot-starter</artifactId>
@@ -70,6 +70,10 @@
7070
</configuration>
7171
<!-- Version defined in parent pluginManagement section -->
7272
</plugin>
73+
<plugin>
74+
<artifactId>maven-release-plugin</artifactId>
75+
<!-- Version and configuration etc defined in parent pluginManagement section -->
76+
</plugin>
7377
</plugins>
7478
</build>
7579

0 commit comments

Comments
 (0)