Download ktor from maven central in wizard project
This commit is contained in:
committed by
TeamCityServer
parent
ae67bb4565
commit
0a1e4fd7d7
-1
@@ -13,7 +13,6 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url 'https://dl.bintray.com/kotlin/kotlin-js-wrappers' }
|
maven { url 'https://dl.bintray.com/kotlin/kotlin-js-wrappers' }
|
||||||
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
|
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
|
||||||
maven { url 'https://dl.bintray.com/kotlin/ktor' }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|||||||
-1
@@ -13,7 +13,6 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers") }
|
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers") }
|
||||||
maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") }
|
maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") }
|
||||||
maven { url = uri("https://dl.bintray.com/kotlin/ktor") }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ data class JetBrainsSpace(val repository: String) : CustomMavenRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
object Repositories {
|
object Repositories {
|
||||||
val KTOR_BINTRAY = BintrayRepository("kotlin/ktor")
|
val KTOR = DefaultRepository.MAVEN_CENTRAL
|
||||||
val KOTLINX = BintrayRepository("kotlin/kotlinx")
|
val KOTLINX = BintrayRepository("kotlin/kotlinx")
|
||||||
val KOTLIN_JS_WRAPPERS_BINTRAY = BintrayRepository("kotlin/kotlin-js-wrappers")
|
val KOTLIN_JS_WRAPPERS_BINTRAY = BintrayRepository("kotlin/kotlin-js-wrappers")
|
||||||
val KOTLIN_EAP_MAVEN_CENTRAL = DefaultRepository.MAVEN_CENTRAL
|
val KOTLIN_EAP_MAVEN_CENTRAL = DefaultRepository.MAVEN_CENTRAL
|
||||||
|
|||||||
+2
-2
@@ -59,7 +59,7 @@ class KtorServerTemplate : Template() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun Writer.getIrsToAddToBuildFile(module: ModuleIR): List<BuildSystemIR> = buildList {
|
override fun Writer.getIrsToAddToBuildFile(module: ModuleIR): List<BuildSystemIR> = buildList {
|
||||||
+RepositoryIR(Repositories.KTOR_BINTRAY)
|
+RepositoryIR(Repositories.KTOR)
|
||||||
+RepositoryIR(DefaultRepository.JCENTER)
|
+RepositoryIR(DefaultRepository.JCENTER)
|
||||||
+runTaskIrs(mainClass = "ServerKt")
|
+runTaskIrs(mainClass = "ServerKt")
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,7 @@ class KtorServerTemplate : Template() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun ktorArtifactDependency(@NonNls name: String, kotlinVersion: Version) = ArtifactBasedLibraryDependencyIR(
|
private fun ktorArtifactDependency(@NonNls name: String, kotlinVersion: Version) = ArtifactBasedLibraryDependencyIR(
|
||||||
MavenArtifact(Repositories.KTOR_BINTRAY, "io.ktor", name),
|
MavenArtifact(Repositories.KTOR, "io.ktor", name),
|
||||||
Versions.KTOR,
|
Versions.KTOR,
|
||||||
DependencyType.MAIN
|
DependencyType.MAIN
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user