Removed problematic sourceset casting

This commit is contained in:
nathan 2020-06-02 15:48:16 +02:00
parent 4e1782192e
commit 8c579e3e89
2 changed files with 1 additions and 4 deletions

View File

@ -35,7 +35,7 @@ object Extras {
// set for the project
const val description = "Gradle Plugin to manage various Gradle tasks, such as updating gradle and dependencies"
const val group = "com.dorkbox"
const val version = "1.5.3"
const val version = "1.6"
// set as project.ext
const val name = "Gradle Utils"

View File

@ -80,6 +80,3 @@ val SourceSet.kotlin: SourceDirectorySet
fun SourceSet.kotlin(action: SourceDirectorySet.() -> Unit) =
kotlin.action()
val Project.sourceSetsMap: SortedMap<String, SourceSet>
get() = (this.extensions.getByName("sourceSets") as org.gradle.api.tasks.SourceSetContainer).asMap