diff --git a/build.gradle.kts b/build.gradle.kts index 05c1f6f..4e197fb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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" + const val version = "1.5.1" // set as project.ext const val name = "Gradle Utils" diff --git a/src/dorkbox/gradle/GradleUtils.kt b/src/dorkbox/gradle/GradleUtils.kt index c5f6ab7..ab0e421 100644 --- a/src/dorkbox/gradle/GradleUtils.kt +++ b/src/dorkbox/gradle/GradleUtils.kt @@ -65,7 +65,6 @@ class GradleUtils : Plugin { } } - // Fix defaults for gradle, since it's mildly retarded when it comes to kotlin, so we can have sane sourceset/configuration options // from: https://github.com/gradle/kotlin-dsl-samples/blob/201534f53d93660c273e09f768557220d33810a9/buildSrc/src/main/kotlin/build/KotlinPluginExtensions.kt val SourceSet.kotlin: SourceDirectorySet @@ -78,6 +77,6 @@ val SourceSet.kotlin: SourceDirectorySet fun SourceSet.kotlin(action: SourceDirectorySet.() -> Unit) = kotlin.action() -val Project.sourceSets: SortedMap +val Project.sourceSetsMap: SortedMap get() = (this.extensions.getByName("sourceSets") as org.gradle.api.tasks.SourceSetContainer).asMap