[Gradle, JS] Remove possibility to declare npm dependency w/o version

#KT-38683 fixed
This commit is contained in:
Ilya Goncharov
2020-05-06 19:05:20 +03:00
parent 3a9e3f29e4
commit 28b0bfd40c
3 changed files with 28 additions and 12 deletions
@@ -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 {