Skip to content

Commit

Permalink
Add RepositoryContentDescriptor to IvyRepository #136
Browse files Browse the repository at this point in the history
  • Loading branch information
deepy committed Jan 20, 2021
1 parent 52dd035 commit 824be4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ that shows how to use this plugin version with Kotlin)
* npm 7+ support (issue [#123](https://github.com/node-gradle/gradle-node-plugin/issues/123))
* Improved ARM support (issue [#130](https://github.com/node-gradle/gradle-node-plugin/issues/130))
* Gradle configuration cache support (issue [#111](https://github.com/node-gradle/gradle-node-plugin/issues/111))
* Add RepositoryContentDescriptor to IvyRepository #136

### Breaking changes

Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/com/github/gradle/node/NodePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class NodePlugin : Plugin<Project> {

private fun addRepository(distUrl: String) {
project.repositories.ivy {
name = "Node.js"
setUrl(distUrl)
patternLayout {
artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]")
Expand All @@ -95,6 +96,9 @@ class NodePlugin : Plugin<Project> {
metadataSources {
artifact()
}
content {
includeModule("org.nodejs", "node")
}
}
}

Expand Down

0 comments on commit 824be4f

Please sign in to comment.