blob: 5c2c45fa39250fcb85c13f418d6adddac67ca1df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package buildsrc.conventions
import buildsrc.utils.asConsumer
import buildsrc.utils.asProvider
plugins {
id("buildsrc.conventions.base")
}
val exampleProjectsAttribute: Attribute<String> =
Attribute.of("example-projects", String::class.java)
dependencies.attributesSchema {
attribute(exampleProjectsAttribute)
}
val exampleProjects by configurations.registering {
asConsumer()
attributes { attribute(exampleProjectsAttribute, "dokka") }
}
val exampleProjectsElements by configurations.registering {
asProvider()
attributes { attribute(exampleProjectsAttribute, "dokka") }
}
|