[Gradle, JS] Remove possibility to declare npm dependency w/o version
#KT-38683 fixed
This commit is contained in:
+7
-5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,9 @@ interface KotlinDependencyHandler {
|
||||
|
||||
fun project(notation: Map<String, Any?>): ProjectDependency
|
||||
|
||||
fun npm(name: String, version: String = "*"): Dependency
|
||||
fun npm(name: String): Dependency
|
||||
|
||||
fun npm(name: String, version: String): Dependency
|
||||
|
||||
fun npm(name: String, directory: File): Dependency
|
||||
|
||||
@@ -65,19 +67,19 @@ interface KotlinDependencyHandler {
|
||||
)
|
||||
fun npm(org: String? = null, packageName: String, version: String = "*"): Dependency
|
||||
|
||||
fun devNpm(name: String, version: String = "*"): Dependency
|
||||
fun devNpm(name: String, version: String): Dependency
|
||||
|
||||
fun devNpm(name: String, directory: File): Dependency
|
||||
|
||||
fun devNpm(directory: File): Dependency
|
||||
|
||||
fun optionalNpm(name: String, version: String = "*"): Dependency
|
||||
fun optionalNpm(name: String, version: String): Dependency
|
||||
|
||||
fun optionalNpm(name: String, directory: File): Dependency
|
||||
|
||||
fun optionalNpm(directory: File): Dependency
|
||||
|
||||
fun peerNpm(name: String, version: String = "*"): Dependency
|
||||
fun peerNpm(name: String, version: String): Dependency
|
||||
}
|
||||
|
||||
interface HasKotlinDependencies {
|
||||
|
||||
Reference in New Issue
Block a user