Skip to content

Commit 2c4f04b

Browse files
committed
Fix kofu-tutorial build
1 parent 74cc788 commit 2c4f04b

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

samples/kofu-tutorial/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4-
id("org.springframework.boot") version "2.6.3"
4+
id("org.springframework.boot") version "2.6.6"
55
id("io.spring.dependency-management") version "1.0.11.RELEASE"
66
kotlin("jvm") version "1.6.10"
77
kotlin("kapt") version "1.6.10"
@@ -13,10 +13,10 @@ java.sourceCompatibility = JavaVersion.VERSION_11
1313
val kofuVersion = "0.5.1"
1414

1515
repositories {
16-
maven {
17-
url = uri("https://repo.spring.io/milestone")
18-
}
16+
mavenLocal()
1917
mavenCentral()
18+
maven("https://repo.spring.io/milestone")
19+
maven("https://repo.spring.io/snapshot")
2020
}
2121

2222
dependencies {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
rootProject.name = "kofu-tutorial"
2+
3+
pluginManagement {
4+
repositories {
5+
gradlePluginPortal()
6+
maven("https://repo.spring.io/milestone")
7+
maven("https://repo.spring.io/snapshot")
8+
}
9+
resolutionStrategy {
10+
eachPlugin {
11+
if (requested.id.id == "org.springframework.boot") {
12+
useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
13+
}
14+
}
15+
}
16+
}
17+

0 commit comments

Comments
 (0)