Skip to content

Commit

Permalink
Fixed vulnerability and changed the correct variables
Browse files Browse the repository at this point in the history
  • Loading branch information
zessirb committed Jul 18, 2020
1 parent 8fc9014 commit e0ab7d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ targetCompatibility = 1.8
versioning {
// required (number)
major = 3
minor = 3
minor = 7
patch = 1
}
group = 'com.onaple'
version = "3.7.0"
version = "3.7.1"

repositories {
mavenCentral()
Expand Down Expand Up @@ -70,14 +70,14 @@ bintray {
publications = ['MyPublication']
pkg {
repo = 'onaple'
name = 'itemizer'
name = 'Itemizer'
userOrg = 'onaplerpg'
licenses = ['Apache-2.0']
vcsUrl = 'git@github.com:OnapleRPG/Itemizer.git'
version {
name = '3.7.0'
name = '3.7.1'
released = new Date()
vcsTag = '3.7.0'
vcsTag = '3.7.1'
}
}
}
Expand All @@ -87,7 +87,7 @@ publishing {
from components.java
groupId 'com.onaple'
artifactId 'itemizer'
version '3.7.0'
version '3.7.1'
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/onaple/itemizer/utils/ConfigUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import com.onaple.itemizer.Itemizer;

Expand Down Expand Up @@ -60,8 +61,8 @@ public static <T> List<T> loadMultiple(Class<T> clazz, Path initialPath) throws
private static List<Path> getFilesFromPath(Path path) {
List<Path> filesFound = new ArrayList<>();
if (Files.exists(path)) {
try {
filesFound.addAll(Files.walk(path, READ_RECURSION_LIMIT)
try(Stream<Path> files = Files.walk(path, READ_RECURSION_LIMIT)) {
filesFound.addAll(files
.filter(Files::isRegularFile)
.distinct()
.collect(Collectors.toList()));
Expand Down
6 changes: 3 additions & 3 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Sat Jul 18 13:20:06 CEST 2020
#Sat Jul 18 13:38:31 CEST 2020
MAJOR=3
MINOR=7
PATCH=0
PATCH=1
PRE_RELEASE=
BUILD=224
BUILD=225
CODE=0

0 comments on commit e0ab7d8

Please sign in to comment.