We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a34045 commit 5f49c55Copy full SHA for 5f49c55
1 file changed
src/main/kotlin/com/github/gradle/node/NodePlugin.kt
@@ -16,6 +16,7 @@ import org.gradle.api.Project
16
import org.gradle.kotlin.dsl.create
17
import org.gradle.kotlin.dsl.named
18
import org.gradle.kotlin.dsl.register
19
+import org.gradle.util.GradleVersion
20
import java.io.File
21
22
class NodePlugin : Plugin<Project> {
@@ -99,7 +100,9 @@ class NodePlugin : Plugin<Project> {
99
100
content {
101
includeModule("org.nodejs", "node")
102
}
- allowInsecureProtocol?.let { isAllowInsecureProtocol = it }
103
+ if (GradleVersion.current() >= GradleVersion.version("6.0")) {
104
+ allowInsecureProtocol?.let { isAllowInsecureProtocol = it }
105
+ }
106
107
108
0 commit comments