File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ plugins {
22 `kotlin- dsl`
33}
44
5- repositories {
6- gradlePluginPortal()
7- mavenCentral()
5+ kotlin {
6+ jvmToolchain(libs.versions.java.get().toInt())
87}
98
109dependencies {
Original file line number Diff line number Diff line change 1+ @file:Suppress(" UnstableApiUsage" )
2+
3+ pluginManagement {
4+ repositories {
5+ mavenCentral()
6+ gradlePluginPortal()
7+ }
8+ }
9+
110dependencyResolutionManagement {
11+ repositories {
12+ mavenCentral()
13+ }
214 versionCatalogs {
315 create(" libs" ) {
416 // https://github.com/gradle/gradle/issues/15383#issuecomment-779893192
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ plugins {
77 java
88}
99
10- repositories {
11- mavenCentral()
12- }
13-
1410java {
1511 toolchain {
1612 languageVersion.set(JavaLanguageVersion .of(libs.versions.java.get()))
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ plugins {
77 kotlin(" jvm" )
88}
99
10- repositories {
11- mavenCentral()
12- }
13-
1410kotlin {
1511 jvmToolchain(libs.versions.java.get().toInt())
1612}
Original file line number Diff line number Diff line change 1+ @file:Suppress(" UnstableApiUsage" )
12rootProject.name = " GradleInit"
3+
4+ pluginManagement {
5+ repositories {
6+ mavenCentral()
7+ gradlePluginPortal()
8+ }
9+ }
10+
11+ dependencyResolutionManagement {
12+ repositories {
13+ mavenCentral()
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments