Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Sep 14, 2021
1 parent 0232954 commit 5eb6666
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5eb6666

Please sign in to comment.