Skip to content

Commit

Permalink
lazily fix recursive dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed May 13, 2024
1 parent 6dfe138 commit 9d47be3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import kotlin.io.path.outputStream

abstract class DowngradeJar : Jar() {

private val jvmdg = project.extensions.getByType(JVMDowngraderExtension::class.java)
private val jvmdg by lazy {
project.extensions.getByType(JVMDowngraderExtension::class.java)
}

@get:Input
@get:Optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import kotlin.io.path.outputStream

abstract class ShadeAPI : Jar() {

private val jvmdg = project.extensions.getByType(JVMDowngraderExtension::class.java)
private val jvmdg by lazy {
project.extensions.getByType(JVMDowngraderExtension::class.java)
}

@get:Input
@get:Optional
Expand Down

0 comments on commit 9d47be3

Please sign in to comment.