Plex-FAWE/buildSrc/src/main/kotlin/GradleExtras.kt

13 lines
426 B
Kotlin
Raw Normal View History

2019-08-26 04:45:03 +00:00
import org.gradle.api.Project
import org.gradle.api.plugins.ExtraPropertiesExtension
import org.gradle.api.plugins.JavaPluginExtension
2019-08-26 04:45:03 +00:00
import org.gradle.api.tasks.SourceSetContainer
import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.the
val Project.ext: ExtraPropertiesExtension
get() = extensions.getByType()
val Project.sourceSets: SourceSetContainer
get() = the<JavaPluginExtension>().sourceSets