Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

287
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda