@@ -16,10 +16,7 @@ import java.io.File
1616
1717buildscript {
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
6764repositories {
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
7970java {
@@ -94,9 +85,9 @@ val gradleToolingExtensionJar = task<Jar>(gradleToolingExtension.jarTaskName) {
9485}
9586
9687dependencies {
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
264255inline 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
266257fun intellijPlugin (name : String ) = mapOf (
267258 " group" to " org.jetbrains.plugins" ,
268259 " name" to name,
0 commit comments