Skip to content

Commit

Permalink
Updating checkstyle and pmd plugins to latest (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
haroon-sheikh authored Mar 11, 2022
1 parent fbada23 commit 5f57159
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Cache
uses: actions/cache@v1.0.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Cache
uses: actions/cache@v1.0.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased
## 0.10.0

### Updated

- Upgrade minimal required jdk version to 11
- Updates Unit tests to use Junit5 and system-stubs

## 0.9.1
Expand Down
13 changes: 6 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.github.sitture</groupId>
<artifactId>env-config</artifactId>
<packaging>jar</packaging>
<version>0.9.2</version>
<version>0.10.0</version>

<name>env-config</name>
<description>A simple utility to manage environment configs in Java-based projects by merging *.properties files with environment variables overrides.</description>
Expand Down Expand Up @@ -49,10 +49,10 @@
<commons-configuration2.version>2.7</commons-configuration2.version>
<slf4j.version>1.7.36</slf4j.version>
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
<maven-pmd-plugin.version>3.15.0</maven-pmd-plugin.version>
<maven-pmd-plugin.version>3.16.0</maven-pmd-plugin.version>
<system-rules.version>1.19.0</system-rules.version>
<openkeepass.version>0.8.2</openkeepass.version>
<nexus-staging-maven-plugin.version>1.6.11</nexus-staging-maven-plugin.version>
<nexus-staging-maven-plugin.version>1.6.12</nexus-staging-maven-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
Expand All @@ -62,12 +62,11 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<release>11</release>
</configuration>
</plugin>
<plugin>
Expand All @@ -86,7 +85,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>9.3</version>
<version>10.0</version>
</dependency>
</dependencies>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ void testConstructorIsPrivate() throws NoSuchMethodException, IllegalAccessExcep
System.setProperty(CONFIG_ENV_KEY, DEFAULT_ENVIRONMENT);
final Constructor<EnvConfig> constructor = EnvConfig.class.getDeclaredConstructor();
Assertions.assertTrue(Modifier.isPrivate(constructor.getModifiers()));
constructor.setAccessible(true);
constructor.newInstance();
}

Expand Down

0 comments on commit 5f57159

Please sign in to comment.