Skip to content

Commit 2845456

Browse files
committed
Update Gradle wrapper to 4.2
1 parent 7605e46 commit 2845456

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

build.gradle.kts

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ import java.io.File
1616

1717
buildscript {
1818
repositories {
19-
maven {
20-
name = "intellij-plugin-service"
21-
setUrl("https://dl.bintray.com/jetbrains/intellij-plugin-service")
22-
}
19+
maven("https://dl.bintray.com/jetbrains/intellij-plugin-service")
2320
}
2421
}
2522

@@ -66,14 +63,8 @@ configurations {
6663

6764
repositories {
6865
mavenCentral()
69-
maven {
70-
name = "minecraft-dev"
71-
setUrl("https://dl.bintray.com/minecraft-dev/maven")
72-
}
73-
maven {
74-
name = "sponge"
75-
setUrl("https://repo.spongepowered.org/maven")
76-
}
66+
maven("https://dl.bintray.com/minecraft-dev/maven")
67+
maven("https://repo.spongepowered.org/maven")
7768
}
7869

7970
java {
@@ -94,9 +85,9 @@ val gradleToolingExtensionJar = task<Jar>(gradleToolingExtension.jarTaskName) {
9485
}
9586

9687
dependencies {
97-
"kotlin"(kotlinModule("stdlib")) { isTransitive = false }
98-
compile(kotlinModule("stdlib-jre7")) { isTransitive = false }
99-
compile(kotlinModule("stdlib-jre8")) { isTransitive = false }
88+
"kotlin"(kotlin("stdlib")) { isTransitive = false }
89+
compile(kotlin("stdlib-jre7")) { isTransitive = false }
90+
compile(kotlin("stdlib-jre8")) { isTransitive = false }
10091

10192
// Add tools.jar for the JDI API
10293
compile(files(Jvm.current().toolsJar))
@@ -262,7 +253,7 @@ runIde {
262253
}
263254

264255
inline operator fun <T : Task> T.invoke(a: T.() -> Unit): T = apply(a)
265-
fun DependencyHandlerScope.kotlinModule(module: String) = kotlinModule(module, kotlinVersion) as String
256+
fun DependencyHandlerScope.kotlin(module: String) = kotlin(module, kotlinVersion) as String
266257
fun intellijPlugin(name: String) = mapOf(
267258
"group" to "org.jetbrains.plugins",
268259
"name" to name,

gradle/wrapper/gradle-wrapper.jar

0 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2-bin.zip

0 commit comments

Comments
 (0)