diff --git a/doc/modules/core/pages/install.adoc b/doc/modules/core/pages/install.adoc index 9ee1ac38..73931096 100644 --- a/doc/modules/core/pages/install.adoc +++ b/doc/modules/core/pages/install.adoc @@ -7,36 +7,6 @@ [[install-jvm]] == JVM -=== With Maven - -Add the JCenter repository: - -[source,xml,subs="attributes"] ----- -<repositories> - <repository> - <id>jcenter</id> - <url>https://jcenter.bintray.com</url> - </repository> -</repositories> ----- - -Then add the dependency: - -[source,xml,subs="attributes"] ----- -<dependencies> - <dependency> - <groupId>org.kodein.di</groupId> - <artifactId>kodein-di-jvm</artifactId> - <version>{version}</version> - </dependency> -</dependencies> ----- - -WARNING: Use `kodein-di-jvm`, as _Kotlin/Multiplatform_ projects does not work with Maven - - === With Gradle Add the JCenter repository: @@ -59,36 +29,48 @@ dependencies { } ---- -[[kotlin-js]] -== JavaScript (Gradle) +[TIP] +==== +If you are *NOT* using *Gradle 6+*, you should declare the use of the Gradle Metadata experimental feature -Because _Kodein-DI_ for JavaScript is compiled as a https://github.com/umdjs/umd[UMD module], it can be imported: +[subs="attributes"] +.settings.gradle.kts +---- +enableFeaturePreview("GRADLE_METADATA") +---- -* In a browser: -** as an AMD module (for example with RequireJS) (See index.html in the demo project). -** Directly in an HTML page with a `