Skip to content

Commit

Permalink
Merge pull request #325 from JarvisCraft/1.0.0-rc.9
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvisCraft authored Feb 7, 2022
2 parents 0cdb7e8 + e431dcd commit b7d4e91
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ jobs:
- uses: actions/[email protected]

- name: Set up Java 17
uses: actions/setup-java@v2.4.0
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: '17'
cache: 'maven'

- name: Initialize CodeQL
uses: github/codeql-action/[email protected].26
uses: github/codeql-action/[email protected].31
with:
languages: java

- name: Autobuild
uses: github/codeql-action/[email protected].26
uses: github/codeql-action/[email protected].31

- name: Perform CodeQL Analysis
uses: github/codeql-action/[email protected].26
uses: github/codeql-action/[email protected].31
4 changes: 2 additions & 2 deletions .github/workflows/deploy-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/[email protected]

- name: Set up Java 17 & Deployment credentials
uses: actions/setup-java@v2.4.0
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: '17'
Expand All @@ -27,7 +27,7 @@ jobs:
- uses: jactions/[email protected]
id: get_version

- name: Deploy snapshot
- name: Deploy release
if: ${{ !endsWith(steps.get_version.outputs.version, '-SNAPSHOT') }}
run: mvn deploy -B -P build-extras,sign-artifacts,automatic-central-release
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/[email protected]

- name: Set up Java 17 & Deployment credentials
uses: actions/setup-java@v2.4.0
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: '17'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/[email protected]

- name: Set up Java 17
uses: actions/setup-java@v2.4.0
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: '17'
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: actions/[email protected]

- name: Set up Java 17
uses: actions/setup-java@v2.4.0
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: '17'
Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Supported Versions

| Version | Supported |
| ------------ | ------------------ |
| [1.0.0-rc.8] | :heavy_check_mark: |
| < 1.0.0-rc.8 | :x: |
|--------------| ------------------ |
| [1.0.0-rc.9] | :heavy_check_mark: |
| < 1.0.0-rc.9 | :x: |

## Reporting a Vulnerability

Expand Down
2 changes: 1 addition & 1 deletion java-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>padla</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
</parent>
<artifactId>java-commons</artifactId>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package ru.progrm_jarvis.javacommons.util.function;

import lombok.SneakyThrows;

import java.util.function.Consumer;

/**
* An extension of {@link Consumer} allowing throwing calls in its body.
*
* @param <T> the type of the input to the operation
* @param <X> the type of the exception thrown by the function
*/
@FunctionalInterface
public interface ThrowingConsumer<T, X extends Throwable> extends Consumer<T> {

/**
* Performs this operation on the given argument.
*
* @param t the input argument
* @throws X if an exception happens
*/
void acceptChecked(T t) throws X;

@Override
@SneakyThrows
default void accept(final T t) {
acceptChecked(t);
}
}
8 changes: 4 additions & 4 deletions padla-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>padla</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
</parent>
<artifactId>padla-bom</artifactId>
<packaging>pom</packaging>
Expand All @@ -20,17 +20,17 @@
<dependency>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>java-commons</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
</dependency>
<dependency>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>reflector</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
</dependency>
<dependency>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>ultimate-messenger</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>padla</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
<modules>
<module>java-commons</module>
<module>reflector</module>
Expand All @@ -18,7 +18,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version.minimal>8</java.version.minimal>
<!-- Duplicated dependency versions -->
<version.mockito>4.2.0</version.mockito>
<version.mockito>4.3.1</version.mockito>
</properties>

<name>PADLA for Java</name>
Expand Down Expand Up @@ -79,7 +79,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.9.0</version>
<configuration>
<fork>true</fork>
<release>${java.version.minimal}</release>
Expand Down Expand Up @@ -124,7 +124,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
<configuration>
<archive>
<manifestEntries>
Expand Down
2 changes: 1 addition & 1 deletion reflector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>padla</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
</parent>
<artifactId>reflector</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion ultimate-messenger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>ru.progrm-jarvis</groupId>
<artifactId>padla</artifactId>
<version>1.0.0-rc.8</version>
<version>1.0.0-rc.9</version>
</parent>
<artifactId>ultimate-messenger</artifactId>

Expand Down

0 comments on commit b7d4e91

Please sign in to comment.