Skip to content

Commit

Permalink
Release version 0.2.0 and add necessary changes to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TanVD committed Oct 19, 2021
1 parent 1c524ef commit a6ffa1d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,28 @@ Consider using one of the latest versions of Gradle, starting with the **7.2** v

Basically, if you already use Gradle, you only need to do two things.

Firstly, set up the Kotless Gradle plugin. You need to apply the plugin:
Firstly, set up the Kotless Gradle plugin.

You will have to tell Gradle where to find the plugin by editing `settings.gradle.kts`:
```kotlin
pluginManagement {
resolutionStrategy {
this.eachPlugin {
if (requested.id.id == "io.kotless") {
useModule("io.kotless:gradle:${this.requested.version}")
}
}
}

repositories {
maven(url = uri("https://packages.jetbrains.team/maven/p/ktls/maven"))
gradlePluginPortal()
mavenCentral()
}
}
```

And apply the plugin:

```kotlin
//Imports are necessary, for this example
Expand All @@ -65,6 +86,8 @@ Secondly, add Kotless DSL (or Ktor, or Spring Boot) as a library to your applica
```kotlin
repositories {
mavenCentral()
//Kotless repository
maven(url = uri("https://packages.jetbrains.team/maven/p/ktls/maven"))
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ subprojects {
}

repositories {
mavenLocal()
maven(url = uri("https://packages.jetbrains.team/maven/p/ktls/maven"))
mavenCentral()
jcenter()
Expand Down
1 change: 0 additions & 1 deletion examples/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pluginManagement {
}

repositories {
mavenLocal()
maven(url = uri("https://packages.jetbrains.team/maven/p/ktls/maven"))
gradlePluginPortal()
mavenCentral()
Expand Down

0 comments on commit a6ffa1d

Please sign in to comment.