Code cleanup
This commit is contained in:
parent
caadae8823
commit
316863c5ae
@ -35,7 +35,7 @@ object Extras {
|
|||||||
// set for the project
|
// set for the project
|
||||||
const val description = "Gradle Plugin to manage various Gradle tasks, such as updating gradle and dependencies"
|
const val description = "Gradle Plugin to manage various Gradle tasks, such as updating gradle and dependencies"
|
||||||
const val group = "com.dorkbox"
|
const val group = "com.dorkbox"
|
||||||
const val version = "1.5"
|
const val version = "1.5.1"
|
||||||
|
|
||||||
// set as project.ext
|
// set as project.ext
|
||||||
const val name = "Gradle Utils"
|
const val name = "Gradle Utils"
|
||||||
|
@ -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
|
// 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
|
// from: https://github.com/gradle/kotlin-dsl-samples/blob/201534f53d93660c273e09f768557220d33810a9/buildSrc/src/main/kotlin/build/KotlinPluginExtensions.kt
|
||||||
val SourceSet.kotlin: SourceDirectorySet
|
val SourceSet.kotlin: SourceDirectorySet
|
||||||
@ -78,6 +77,6 @@ val SourceSet.kotlin: SourceDirectorySet
|
|||||||
fun SourceSet.kotlin(action: SourceDirectorySet.() -> Unit) =
|
fun SourceSet.kotlin(action: SourceDirectorySet.() -> Unit) =
|
||||||
kotlin.action()
|
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
|
get() = (this.extensions.getByName("sourceSets") as org.gradle.api.tasks.SourceSetContainer).asMap
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user