Default error for Provider
This commit is contained in:
parent
8529c725e7
commit
c3d4836a11
@ -1,12 +1,12 @@
|
|||||||
plugins {
|
plugins {
|
||||||
val toolsVersion = "0.5.1"
|
val toolsVersion = "0.5.2"
|
||||||
id("scientifik.mpp") version toolsVersion apply false
|
id("scientifik.mpp") version toolsVersion apply false
|
||||||
id("scientifik.jvm") version toolsVersion apply false
|
id("scientifik.jvm") version toolsVersion apply false
|
||||||
id("scientifik.publish") version toolsVersion apply false
|
id("scientifik.publish") version toolsVersion apply false
|
||||||
id("org.jetbrains.dokka") version "0.10.1"
|
id("org.jetbrains.dokka") version "0.10.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
val dataforgeVersion by extra("0.1.8")
|
val dataforgeVersion by extra("0.1.9-dev")
|
||||||
|
|
||||||
val bintrayRepo by extra("dataforge")
|
val bintrayRepo by extra("dataforge")
|
||||||
val githubProject by extra("dataforge-core")
|
val githubProject by extra("dataforge-core")
|
||||||
|
@ -43,7 +43,8 @@ interface Provider {
|
|||||||
/**
|
/**
|
||||||
* A map of direct children for specific target
|
* A map of direct children for specific target
|
||||||
*/
|
*/
|
||||||
fun provideTop(target: String): Map<Name, Any>
|
fun provideTop(target: String): Map<Name, Any> =
|
||||||
|
throw IllegalArgumentException("Target $target is not supported for $this")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Provider.provide(path: Path, targetOverride: String? = null): Any? {
|
fun Provider.provide(path: Path, targetOverride: String? = null): Any? {
|
||||||
|
Loading…
Reference in New Issue
Block a user