Code cleanup

This commit is contained in:
nathan 2020-06-02 14:53:35 +02:00
parent caadae8823
commit 316863c5ae
2 changed files with 2 additions and 3 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"
const val version = "1.5.1"
// set as project.ext
const val name = "Gradle Utils"

View File

@ -65,7 +65,6 @@ class GradleUtils : Plugin<Project> {
}
}
// 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<String, SourceSet>
val Project.sourceSetsMap: SortedMap<String, SourceSet>
get() = (this.extensions.getByName("sourceSets") as org.gradle.api.tasks.SourceSetContainer).asMap