在intellij中将kotlinx-html-js添加到kotlin / js项目中

我需要将kotlinx-html-js库添加到使用Intellij创建的kotlin / js项目中。 我试图添加maven支持,并在pom.xml文件中写下如下:

  4.0.0 com.cillario Demo 1.0-SNAPSHOT   jcenter jcenter https://jcenter.bintray.com     org.jetbrains.kotlinx kotlinx-html-js ${kotlinx.html.version}    

正如这里所解释的,但它不起作用。

有人可以帮我吗? 非常感谢。

至于Gradle,我可以与你分享下面的工作项目: https : //github.com/s1monw1/so_styling_webext/blob/master/build.gradle

'kotlin-platform-js'插件,依赖集合如下所示:

 dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version" compile 'org.jetbrains.kotlinx:kotlinx-html-js:0.6.8' }