From 014181ef749d6e298d8adf035817f73b46dd7f43 Mon Sep 17 00:00:00 2001 From: Romain Boisselle Date: Mon, 28 Dec 2020 08:57:21 +0100 Subject: [PATCH] update documentations --- doc/modules/core/pages/install.adoc | 108 ++++++++------- doc/modules/core/pages/using-environment.adoc | 37 ++++- doc/modules/extension/pages/configurable.adoc | 126 +++++++++++++++--- doc/modules/extension/pages/jsr330.adoc | 22 +-- 4 files changed, 209 insertions(+), 84 deletions(-) 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 `