Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10 from MrPowerGamerBR/patch-1
Browse files Browse the repository at this point in the history
Add Gradle's Kotlin DSL format to the readme
  • Loading branch information
sanity committed Dec 25, 2020
2 parents f4db5b7 + 990e107 commit 0bda45d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,31 @@ Adding Kweb to your project

Kweb is distributed via JitPack, so add this to the repositories {block} in your build.gradle:

Groovy DSL
~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: gradle
repositories {
maven { url 'https://jitpack.io' }
jcenter()
}
Kotlin DSL
~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: kotlin
repositories {
maven("https://jitpack.io")
jcenter()
}
Then add Kweb to the dependencies block:

Groovy DSL
~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: gradle
dependencies {
Expand All @@ -31,6 +47,18 @@ Then add Kweb to the dependencies block:
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
}
Kotlin DSL
~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: kotlin
dependencies {
compile("com.github.kwebio:kweb-core:LATEST_VERSION")
// This (or another SLF4J binding) is required for Kweb to log errors
compile("org.slf4j:slf4j-simple:1.7.30")
}
Replace LATEST_VERSION with the latest version of Kweb, which you can find on `https://jitpack.io/#kwebio/kweb-core <https://jitpack.io/#kwebio/kweb-core>`_.

Hello world
Expand Down

0 comments on commit 0bda45d

Please sign in to comment.