Skip to content

Commit 3fd861c

Browse files
committed
Some minor improvements again
1 parent 2c07f62 commit 3fd861c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ sonar {
154154
publishing {
155155
publications {
156156
mavenJava(MavenPublication) {
157-
from components.java
157+
artifactId = project.archives_base_name
158+
group = project.group
159+
version = project.version
160+
161+
artifact shadeDowngradedApi
158162
}
159163
}
160164

src/main/java/io/github/fabriccompatibilitylayers/modremappingapi/impl/remapper/minecraft/MinecraftRemapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static Collection<Path> getMinecraftJar(Collection<Path> sourcePaths, St
5555

5656
var remapper = builder.build();
5757

58-
Constants.MAIN_LOGGER.info("Remapping minecraft jar from {} to {}!", src, target);
58+
Constants.MAIN_LOGGER.info("Remapping minecraft jar from %s to %s!", src, target);
5959

6060
var outputConsumerPaths = new ArrayList<OutputConsumerPath>();
6161
var resourceRemappers = new ArrayList<>(NonClassCopyMode.FIX_META_INF.remappers);

src/main/java/io/github/fabriccompatibilitylayers/modremappingapi/impl/utils/FileUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ private static void zipFile(File fileToZip, String fileName, ZipOutputStream zip
209209
);
210210

211211
@ApiStatus.Internal
212-
public static FileSystem getJarFileSystem(Path path) throws URISyntaxException, IOException {
213-
return FileSystems.newFileSystem(URI.create("jar:" + path.toUri()), ZIP_PROPERTIES);
212+
public static FileSystem getJarFileSystem(Path path) throws IOException {
213+
return FileSystems.newFileSystem(path, ZIP_PROPERTIES);
214214
}
215215

216216
@ApiStatus.Internal

0 commit comments

Comments
 (0)