-
-
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.
#134 Explain how to use the plugin when the Gradle centralized reposi…
…tories declaration is enabled. Add a test to ensure that the plugin works by default when the centralized repositories declaration is enabled and it does not need to download the Node.js bundle.
- Loading branch information
Showing
11 changed files
with
101 additions
and
58 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
49 changes: 0 additions & 49 deletions
49
src/test/resources/fixtures/node-depresolutionmgmt/build.gradle
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
src/test/resources/fixtures/node-fail-on-project-repos-download/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,18 @@ | ||
plugins { | ||
id "com.github.node-gradle.node" | ||
} | ||
|
||
node { | ||
version = "12.13.0" | ||
distBaseUrl = null | ||
download = true | ||
workDir = file("build/node") | ||
} | ||
|
||
task hello(type: NodeTask) { | ||
script = file("simple.js") | ||
args = [] | ||
outputs.upToDateWhen { | ||
true | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
src/test/resources/fixtures/node-fail-on-project-repos-no-download/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,11 @@ | ||
plugins { | ||
id "com.github.node-gradle.node" | ||
} | ||
|
||
task hello(type: NodeTask) { | ||
script = file("simple.js") | ||
args = [] | ||
outputs.upToDateWhen { | ||
true | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/test/resources/fixtures/node-fail-on-project-repos-no-download/settings.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,10 @@ | ||
import org.gradle.api.initialization.resolve.RepositoriesMode | ||
import org.gradle.util.GradleVersion | ||
|
||
if (GradleVersion.current() >= GradleVersion.version("6.8")) { | ||
dependencyResolutionManagement { | ||
repositories { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/test/resources/fixtures/node-fail-on-project-repos-no-download/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"); |