Browse Source
This is needed to introduce non-Gradle plugin modules under gradle-plugins build for Compose preview runtime.pull/566/head
Alexey Tsvetkov
4 years ago
committed by
Alexey Tsvetkov
4 changed files with 43 additions and 16 deletions
@ -0,0 +1,14 @@
|
||||
import org.gradle.api.Project |
||||
|
||||
open class MavenPublicationConfigExtension { |
||||
lateinit var artifactId: String |
||||
lateinit var displayName: String |
||||
lateinit var description: String |
||||
} |
||||
|
||||
val Project.mavenPublicationConfig: MavenPublicationConfigExtension? |
||||
get() = extensions.findByType(MavenPublicationConfigExtension::class.java) |
||||
|
||||
fun Project.mavenPublicationConfig(fn: MavenPublicationConfigExtension.() -> Unit) { |
||||
extensions.create("mavenPublicationConfig", MavenPublicationConfigExtension::class.java).apply(fn) |
||||
} |
Loading…
Reference in new issue