:wave: Hey, I'm trying to integrate our private JF...
# gradle
j
👋 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
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. 😉
a
adding a
.yarnrc
file is the documented solution, but judging from the open issue KT-33496 and this comment on KT-42747 it might not work? If you search in
$projectRootDir/build/js/
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
@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!
Yep, it was my configuration mistake due to using scoped packages.
🚀 1
👌 1