Skip to content

Document how to set up the plugin so that it does not break custom repository configuration #348

Description

@jacek-lewandowski

It would be helpful to document this approach. I've found it annoying that my project started complaining about all other dependencies which are usually fetched from a custom repository once I added this plugin.

// Append this to the bottom of your settings.gradle.kts
dependencyResolutionManagement {
  repositories {

    ivy {
      url = uri("https://nodejs.org/dist")
      patternLayout {
        artifact("v[revision]/[artifact]-v[revision]-[classifier].[ext]")
        artifact("v[revision]/[artifact]-v[revision].[ext]")
      }
 
      metadataSources {
        artifact()
      }
    
      content {
        includeGroup("org.nodejs")
      }
    }
  }
}

and

// Node configuration
node {
  version.set("xx.yy.zz")
  download.set(true)
  nodeProjectDir.set(file("${projectDir}/..."))
  distBaseUrl = null
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions