👋 Hey, I'm trying to integrate our private JFrog npm repository into our Kotlin/JS Gradle build, and I'm having a bit of trouble.
Copy code
...
val jsMain by getting {
dependencies {
...
implementation(npm("@my-private-namp", "5.3.2"))
}
}
...
- Kotlin: 1.9.0
- Gradle: 7.4
I've added
.npmrc
and
.yarnrc
files to the project root to configure access to our JFrog npm repository, but without success. Has anyone successfully integrated JFrog's npm repository into a Kotlin/JS Gradle project before? Any guidance or references would be highly appreciated. Thanks!
not kotlin but kotlin colored 1
v
Vampire
08/16/2023, 7:18 PM
Please have a look at the channel topic to find a better place where your question is not off-topic as is not Kotlin-related. 😉
can you see if the custom file is picked up? If you run a build using
--debug
(warning - it will dump a lot of logs, so it'd be a good idea to pipe the output into a file) and check the logs are there any messages about the custom NPM repo?
j
Jaakko Suutarla
08/17/2023, 3:40 AM
@Vampire, thanks for pointing that up.
@Adam S I have checked those tickets, but I'll try again with --debug flag. I assume it's somehow related to my setup because it's working for other people. Thanks!
Jaakko Suutarla
08/17/2023, 4:36 AM
Yep, it was my configuration mistake due to using scoped packages.