From 8a51f271ad95a8b4e5c1d2bc5e2abcc5ff2d9af4 Mon Sep 17 00:00:00 2001 From: samo_lego <34912839+samolego@users.noreply.github.com> Date: Wed, 29 Jul 2020 14:03:10 +0200 Subject: [PATCH] Implementing bytes library --- README.md | 2 ++ build.gradle | 16 +++++++++++----- gradle.properties | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ab2a651..5d730aa 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ ## License Libraries that the project is using: - `Argon2 (LGPLv3)` https://github.com/phxql/argon2-jvm +- `BCrypt (Apache 2)` https://github.com/patrickfav/bcrypt +- `Bytes (Apache 2)` https://github.com/patrickfav/bytes-java - `leveldb (BSD-3-Clause)` https://github.com/google/leveldb - `JNA (Apache 2 || LGPLv3)` https://github.com/java-native-access/jna diff --git a/build.gradle b/build.gradle index 7f155dd..d79725c 100644 --- a/build.gradle +++ b/build.gradle @@ -32,14 +32,20 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - // Argon2 library for password hashing - implementation "de.mkammerer:argon2-jvm:${project.argon2_version}" - include "de.mkammerer:argon2-jvm:${project.argon2_version}" + + // Password hashing + // Argon2 + implementation "de.mkammerer:argon2-jvm:${argon2_version}" + include "de.mkammerer:argon2-jvm:${argon2_version}" // BCrypt - implementation "at.favre.lib:bcrypt:${project.bcrypt_version}" + implementation "at.favre.lib:bcrypt:${bcrypt_version}" + implementation "at.favre.lib:bytes:${bytes_version}" + include "at.favre.lib:bcrypt:${bcrypt_version}" + include "at.favre.lib:bytes:${bytes_version}" - // leveldb + // Storage + // leveldb database implementation group: 'org.iq80.leveldb', name: 'leveldb', version: '0.12' implementation group: 'org.iq80.leveldb', name: 'leveldb-api', version: '0.12' include group: 'org.iq80.leveldb', name: 'leveldb', version: '0.12' diff --git a/gradle.properties b/gradle.properties index e72788f..f848899 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,3 +21,4 @@ carpet_branch = 1.16 # Hashing argon2_version = 2.7 bcrypt_version = 0.9.0 +bytes_version = 1.3.0