@ file : Jvm Name (" Signing Properties ") Ċ package Ġnet . cord a . plugins . cp k Ċ Ċ import Ġnet . cord a . plugins . cp k . signing . Signing Options Ċ import Ġnet . cord a . plugins . cp k . signing . Signing Options . Companion . SYSTEM _ PROPERTY _ PREFIX Ċ import Ġnet . cord a . plugins . cp k . signing . nested Ċ import Ġorg . gradle . api . Action Ċ import Ġorg . gradle . api . model . ObjectFactory Ċ import Ġorg . gradle . api . provider . Property Ċ import Ġorg . gradle . api . provider . Provider Factory Ċ import Ġorg . gradle . api . tasks . Input Ċ import Ġorg . gradle . api . tasks . Nested Ċ import Ġorg . gradle . api . tasks . Task Inputs Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠRegisters Ġthese Ġ[ Signing ] Ġproperties Ġas Ġtask Ġinputs , Ċ Ġ* Ġbecause ĠGradle Ġcannot Ġ" see " Ġtheir Ġ`@ Input ` Ġannotations Ġyet . Ċ Ġ*/ Ċ fun ĠTask Inputs . nested ( nest Name : ĠString , Ġsigning : ĠSign ing ) Ġ{ ĊĠĠĠ Ġproperty ("${ nest Name }. enabled ", Ġsigning . enabled ) ĊĠĠĠ Ġnested ("${ nest Name }. options ", Ġsigning . options ) Ċ } Ċ Ċ @ Suppress (" Un stable Api Usage ", Ġ" Unused ", Ġ" Platform Extension Receiver Of Inline ") Ċ open Ġclass ĠSign ing Ġ@ Inject Ġconstructor ( objects : ĠObject Factory , Ġproviders : ĠProvider Factory ) Ġ{ ĊĊĠĠĠ Ġ@ get : Input ĊĠĠĠ Ġval Ġenabled : ĠProperty < Boolean > Ġ= Ġobjects . property ( Boolean :: class . java ). convention ( ĊĠĠĠĠĠĠĠ Ġproviders . system Property ( SYSTEM _ PROPERTY _ PREFIX Ġ+ Ġ" enabled "). orElse (" true "). map ( String :: to Boolean ) ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ@ get : Nested ĊĠĠĠ Ġval Ġoptions : ĠSign ing Options Ġ= Ġobjects . newInstance ( Signing Options :: class . java ) ĊĊĠĠĠ Ġfun Ġoptions ( action : ĠAction < in ĠSign ing Options >) Ġ{ ĊĠĠĠĠĠĠĠ Ġaction . execute ( options ) ĊĠĠĠ Ġ} Ċ } Ċ