parent
3a245cd806
commit
d3805ecd27
|
@ -18,9 +18,15 @@ public class LibFilter {
|
||||||
"{\n" +
|
"{\n" +
|
||||||
" \"name\": \"net.java.dev.jna:jna:5.13.0\"\n" +
|
" \"name\": \"net.java.dev.jna:jna:5.13.0\"\n" +
|
||||||
"}";
|
"}";
|
||||||
private static final String OSHI_6_3_STRING =
|
private static final String OSHI_6_3_STRING = "{\n" +
|
||||||
"{\n" +
|
" \"name\": \"com.github.oshi:oshi-core:6.3.0\",\n" +
|
||||||
" \"name\": \"com.github.oshi:oshi-core:6.3.0\"\n" +
|
" \"downloads\": {\n" +
|
||||||
|
" \"artifact\": {\n" +
|
||||||
|
" \"path\": \"com/github/oshi/oshi-core/6.3.0/oshi-core-6.3.0.jar\",\n" +
|
||||||
|
" \"sha1\": \"9e98cf55be371cafdb9c70c35d04ec2a8c2b42ac\",\n" +
|
||||||
|
" \"url\": \"https://repo1.maven.org/maven2/com/github/oshi/oshi-core/6.3.0/oshi-core-6.3.0.jar\"\n" +
|
||||||
|
" }\n" +
|
||||||
|
" }\n" +
|
||||||
" }";
|
" }";
|
||||||
|
|
||||||
private static final Library ASM_ALL_5_2 = GSON.fromJson(ASM_ALL_5_2_STRING, Library.class);
|
private static final Library ASM_ALL_5_2 = GSON.fromJson(ASM_ALL_5_2_STRING, Library.class);
|
||||||
|
@ -44,6 +50,12 @@ public class LibFilter {
|
||||||
} else {
|
} else {
|
||||||
newLibraries.add(JNA_5_13);
|
newLibraries.add(JNA_5_13);
|
||||||
}
|
}
|
||||||
|
} else if (library.getName().startsWith("com.github.oshi:oshi-core:")) {
|
||||||
|
if (Integer.parseInt(version[0]) != 6 || Integer.parseInt(version[1]) != 2) {
|
||||||
|
newLibraries.add(library);
|
||||||
|
} else {
|
||||||
|
newLibraries.add(OSHI_6_3);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
newLibraries.add(library);
|
newLibraries.add(library);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue