# Gradle project dependencies with Kotlin JS?

**URL:** <https://discuss.kotlinlang.org/t/gradle-project-dependencies-with-kotlin-js/21125>\
**Category:** JavaScript\
**Created:** [March 8, 2021, 3:10am UTC](https://discuss.kotlinlang.org/t/gradle-project-dependencies-with-kotlin-js/21125 "2021-03-08T03:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hudson155](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/hudson155/32/8388_2.png) [@hudson155](https://discuss.kotlinlang.org/u/hudson155)\
**Post date:** [March 8, 2021, 3:10am UTC](https://discuss.kotlinlang.org/t/gradle-project-dependencies-with-kotlin-js/21125/1 "2021-03-08T03:10:30Z")

</div>

Say I have multiplatform projects, `multiplatform-a` and `multiplatform-b`. I’d like to use `multiplatform-b` in a JavaScript project. When I run `./gradlew multiplatform-b:jsPublicPackageJson`, the resulting `build/js/packages/multiplatform-b/package.json` looks like

```auto
{
  "name": "multiplatform-b",
  "version": "1.0.0",
  "main": "kotlin/multiplatform-b.js",
  "devDependencies": {},
  "dependencies": {
    "multiplatform-a": "1.0.0", // NOTE THIS LINE
    "kotlin": "file:/{{repository_root}}/build/js/packages_imported/kotlin/1.4.31",
    "kotlin-test-js-runner": "file:/{{repository_root}}/build/js/packages_imported/kotlin-test-js-runner/1.4.31",
    "kotlin-test": "file:/{{repository_root}}/build/js/packages_imported/kotlin-test/1.4.31"
  },
  "peerDependencies": {},
  "optionalDependencies": {},
  "bundledDependencies": []
}

```

When I try to use this as a dependency, yarn rightfully complains that it can’t find a package called `multiplatform-a` from NPM. Is there a way to get the Kotlin-generated package.json file to use an explicit local file path rather than a version?
