-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from markslater/allow-insecure-protocol
Allow insecure protocol
- Loading branch information
Showing
9 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/test/resources/fixtures/node-allow-insecure-protocol/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id "com.github.node-gradle.node" | ||
} | ||
|
||
node { | ||
version = "12.13.0" | ||
distBaseUrl = "http://nodejs.org/dist/" | ||
download = true | ||
allowInsecureProtocol = true | ||
workDir = file("build/node") | ||
} | ||
|
||
task hello(type: NodeTask) { | ||
script = file("simple.js") | ||
args = [] | ||
outputs.upToDateWhen { | ||
true | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/test/resources/fixtures/node-allow-insecure-protocol/simple.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("Hello World"); |
19 changes: 19 additions & 0 deletions
19
src/test/resources/fixtures/node-disallow-insecure-protocol/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id "com.github.node-gradle.node" | ||
} | ||
|
||
node { | ||
version = "12.13.0" | ||
distBaseUrl = "https://nodejs.org/dist/" | ||
download = true | ||
allowInsecureProtocol = false | ||
workDir = file("build/node") | ||
} | ||
|
||
task hello(type: NodeTask) { | ||
script = file("simple.js") | ||
args = [] | ||
outputs.upToDateWhen { | ||
true | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/test/resources/fixtures/node-disallow-insecure-protocol/simple.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("Hello World"); |