From 5eb666614b61283dcfa4769475c2ee33ffe9608d Mon Sep 17 00:00:00 2001 From: Shirasawa <764798966@qq.com> Date: Wed, 15 Sep 2021 01:19:53 +0800 Subject: [PATCH] Update --- .../src/main/java/cn/apisium/papershelled/gradle/Plugin.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin-build/plugin/src/main/java/cn/apisium/papershelled/gradle/Plugin.kt b/plugin-build/plugin/src/main/java/cn/apisium/papershelled/gradle/Plugin.kt index df5923e..05d1b0a 100644 --- a/plugin-build/plugin/src/main/java/cn/apisium/papershelled/gradle/Plugin.kt +++ b/plugin-build/plugin/src/main/java/cn/apisium/papershelled/gradle/Plugin.kt @@ -13,7 +13,7 @@ internal var lastJarTask: Jar? = null abstract class Plugin : Plugin<Project> { override fun apply(project: Project) { - val ds = project.gradle.sharedServices.registerIfAbsent("downloader", DownloadService::class.java) {} + val ds = project.gradle.sharedServices.registerIfAbsent("downloader", DownloadService::class.java) { } val extension = project.extensions.create("paperShelled", Extension::class.java, project) @@ -68,7 +68,6 @@ abstract class Plugin : Plugin<Project> { project.tasks.withType(JavaCompile::class.java) { it.options.compilerArgs.add("-ArefMapFileName=$refMapName") if (extension.generateReferenceMap.get()) { - if (Files.exists(refMap)) Files.delete(refMap) it.options.compilerArgs.apply { add("-AdefaultObfuscationEnv=named:intermediary") add("-AinMapFileNamedIntermediary=" + extension.reobfFile.get().asFile.path)