Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks when upgrading Gradle to 4.x #3

Closed
lnhrdt opened this issue Nov 12, 2017 · 1 comment
Closed

Breaks when upgrading Gradle to 4.x #3

lnhrdt opened this issue Nov 12, 2017 · 1 comment

Comments

@lnhrdt
Copy link

lnhrdt commented Nov 12, 2017

I've been using kotlinconf-app as a reference for how to get a Kotlin React application to work with a Kotlin Multiplatform dependency. Super cool stuff!

I noticed that the Gradle wrapper in this project is set to v3.3 and the setup here only works with v3.x. When I try to upgrade to a more recent v4.x Gradle version I get these Webpack errors:

Hash: da24f46d6a2df326d929
Version: webpack 3.4.1
Time: 159ms
        Asset       Size  Chunks             Chunk Names
    bundle.js  719 bytes       0  [emitted]  main
bundle.js.map    6.42 kB       0  [emitted]  main
   [0] ./src/main/js/index.js 43 bytes {0} [built]

ERROR in ./src/main/js/index.js
Module not found: Error: Can't resolve 'common-js.js' in '/Users/leonhardt/workspace/kotlinconf-app/web/src/main/js'
 @ ./src/main/js/index.js 1:0-23

ERROR in ./src/main/js/index.js
Module not found: Error: Can't resolve 'web.js' in '/Users/leonhardt/workspace/kotlinconf-app/web/src/main/js'
 @ ./src/main/js/index.js 2:0-17

I'd like to get this working with Gradle v4.x because I'm trying to integrate this approach into an existing Gradle multi-project application that has a Spring Boot application. The org.springframework.boot Gradle plugin requires Gradle 4.0 or later (spring-projects/spring-boot#9516).

Any ideas of how to get a Gradle setup like the one here in kotlinconf-app to play nice with Gradle v4.x or even just what's going wrong when I try it?

@jarekankowski
Copy link
Collaborator

@lnhrdt Thank you for raising this. Gradle plugin has been updated to 4.9-rc-1 with #14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants