Skip to content

Commit c273dc3

Browse files
committed
feat: fix upload
1 parent 6cb3730 commit c273dc3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

buildSrc/src/main/java/customskinloader/gradle/storage/StorageService.java

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.google.gson.Gson;
44
import com.google.gson.GsonBuilder;
55

6+
import java.io.File;
67
import java.io.IOException;
78
import java.nio.charset.StandardCharsets;
89
import java.nio.file.Files;
@@ -29,6 +30,16 @@ public static void put(String key, Path file) {
2930
storages.forEach(it -> it.put(key, file));
3031
}
3132

33+
/**
34+
* Put file to all storage.
35+
*
36+
* @param key key
37+
* @param file file
38+
*/
39+
public static void put(String key, File file) {
40+
put(key, file.toPath());
41+
}
42+
3243
private static final Gson gson = new GsonBuilder().setPrettyPrinting().create();
3344

3445
/**

0 commit comments

Comments
 (0)