Skip to content

Commit

Permalink
Add module-info and refresh for Java 20 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainstorm authored Nov 13, 2023
1 parent 3cddfe6 commit 0492a29
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
25 changes: 17 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<name>Blake2B</name>
<groupId>com.rfksystems</groupId>
<artifactId>blake2b</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
<packaging>jar</packaging>

<url>https://github.com/rfksystems/blake2b</url>
Expand Down Expand Up @@ -35,6 +35,14 @@
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>20</java.version>
<maven.compiler.source>20</maven.compiler.source>
<maven.compiler.target>20</maven.compiler.target>
</properties>

<scm>
<connection>scm:git:git://github.com/rfksystems/blake2b.git</connection>
<developerConnection>scm:git:ssh://github.com:rfksystems/blake2b.git</developerConnection>
Expand All @@ -45,19 +53,19 @@
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
<version>1.16.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>RELEASE</version>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
<version>2.10</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -73,16 +81,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>3.11.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>9</source>
<target>9</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down Expand Up @@ -126,6 +134,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>empty-javadoc-jar</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class Blake2bProvider extends Provider {
public Blake2bProvider() {
super("BLAKE2B", 1.0, "BLAKE2B provider");
super("BLAKE2B", "1.0", "BLAKE2B provider");

put("MessageDigest.BLAKE2B-160", Blake2b160Digest.class.getName());
put("MessageDigest.BLAKE2B-256", Blake2b256Digest.class.getName());
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module com.rfksystems.blake2b {
exports com.rfksystems.blake2b;
exports com.rfksystems.blake2b.security;
}

0 comments on commit 0492a29

Please sign in to comment.