Skip to content

Commit

Permalink
Fix gradle in example and fix reflekt dsl module name in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nbirillo committed Apr 27, 2021
1 parent 5f82e04 commit e1260df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ the following lines in the `dependencies` section:
```kotlin
dependencies {
// The version here and the version in the plugins sections should be equal
implementation("io.reflekt", "io.reflekt.dsl", "0.1.0")
implementation("io.reflekt", "reflekt-dsl", "0.1.0")

// Necessary for this example
compileOnly("io.kotless", "kotless-dsl", "0.1.6")
Expand Down
2 changes: 1 addition & 1 deletion examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ allprojects {

repositories {
mavenCentral()
mavenLocal()
google()
maven(url = uri("https://packages.jetbrains.team/maven/p/reflekt/reflekt"))
}

reflekt {
Expand Down
14 changes: 11 additions & 3 deletions examples/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ include(":first-module")
include(":second-module")

pluginManagement {
resolutionStrategy {
this.eachPlugin {

if (requested.id.id == "io.reflekt") {
useModule("io.reflekt:gradle-plugin:${this.requested.version}")
}
}
}

repositories {
mavenLocal()
gradlePluginPortal()
jcenter()
google()
//add the dependency to Reflekt Maven repository
maven(url = uri("https://packages.jetbrains.team/maven/p/reflekt/reflekt"))
}
}

0 comments on commit e1260df

Please sign in to comment.