Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

292
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda