1 import org.gradle.api.Action
2 import org.gradle.api.DomainObjectSet
3 import org.gradle.api.file.ConfigurableFileCollection
4 import org.gradle.api.model.ObjectFactory
5 import org.gradle.api.provider.Property
6 
7 interface AConfigDeclaration {
8     val packageName: Property<String>
9     val containerName: Property<String>
10     val srcFile: ConfigurableFileCollection
11 }
12 
13 open class AConfigExtension(private val objectFactory: ObjectFactory) {
14 
15     val declarations: DomainObjectSet<AConfigDeclaration> = objectFactory.domainObjectSet(AConfigDeclaration::class.java)
16 
aconfigDeclarationnull17     fun aconfigDeclaration(action: Action<AConfigDeclaration>) {
18         val declaration = objectFactory.newInstance(AConfigDeclaration::class.java)
19         action.execute(declaration)
20         declarations.add(declaration)
21     }
22 }