Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

286
Views
import a lib maven into npm package.json

I use gradle to build a kotlin multiplatform lib (i use -surprise- the org.jetbrains.kotlin.multiplatform !!) I build it to mobile, java and js

My issue is that this plugin publish only into maven repository(even the js output lib !), and I want to also use my lib into a node js/npm project.

Is there a way to tell my package.json to search into a maven repo?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Dependencies can be precised in a number of ways in package.json. The most simple and widely used way is the following:

{
  "dependencies": {
    "<package-name>": "<version-range>",
    "lodash": "^4.17.11"
  }
}

But there are actually many ways to include dependencies beyond that. Replace the version range by either one of the following:

  • Tarball URL of the package
  • Git URL of the package, example: git+ssh://git@github.com:npm/cli.git#v1.0.27
  • Github of the package, example: expressjs/express
  • Local paths, example: file:../foo/bar

I'm pretty sure one of these four options can be tweaked to include a dependency from a maven repo.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!