project: Make it possible to skip injectors
This commit is contained in:
@@ -33,7 +33,14 @@ abstract class Inject : DefaultTask() {
|
||||
val mixins = extension.mixins.get().asFile
|
||||
val rsapi = project.zipTree(extension.rsapi)
|
||||
|
||||
val injector: InjectTaskHandler = Injection(vanilla, rsclient, mixins, rsapi, if (extension.development.isPresent) extension.development.get() else true)
|
||||
val injector: InjectTaskHandler = Injection(
|
||||
vanilla,
|
||||
rsclient,
|
||||
mixins,
|
||||
rsapi,
|
||||
if (extension.development.isPresent) extension.development.get() else true,
|
||||
if (extension.skip.isPresent) extension.skip.get() else ""
|
||||
)
|
||||
|
||||
injector.inject()
|
||||
|
||||
|
||||
@@ -16,6 +16,10 @@ interface InjectExtension {
|
||||
@get:Optional
|
||||
val development: Property<Boolean>
|
||||
|
||||
@get:Input
|
||||
@get:Optional
|
||||
val skip: Property<String>
|
||||
|
||||
@get:[InputFile PathSensitive(PathSensitivity.NONE)]
|
||||
val vanilla: RegularFileProperty
|
||||
|
||||
|
||||
Reference in New Issue
Block a user