Czar
02/22/2018, 2:00 PM4.5.1
gradle.properties kotlin.version=1.2.21
build.gradle.kts plugins {
kotlin("jvm")
}
settings.gradle.kts pluginManagement {
repositories {
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id.startsWith("org.jetbrains.kotlin")) {
useVersion(gradle.rootProject.extra["kotlin.version"] as String)
}
}
}
}
rootProject.name = "blabla"
$ gradle tasks
result:
FAILURE: Build failed with an exception.
Build file '/home/czar/work/occ/build.gradle.kts' line: 2
Plugin [id: 'org.jetbrains.kotlin.jvm'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Gradle Central Plugin Repository (plugin dependency must include a version number for this source)
gildor
02/23/2018, 1:18 AMgradle.rootProject
in setting.gradle. Is this ever worked for you?Czar
02/23/2018, 7:47 AMgildor
02/23/2018, 7:52 AMCzar
02/23/2018, 7:52 AMCzar
02/23/2018, 7:59 AMgildor
02/23/2018, 8:01 AMCzar
02/23/2018, 8:43 AMCzar
02/23/2018, 8:44 AMrootProject
is not the problem.Czar
02/23/2018, 8:55 AMgradle.settings
. If it is, then it is not Kotlin related and I'll move to gradle issue trackergildor
02/23/2018, 8:57 AMsettings["kotlin.version"]
gildor
02/23/2018, 8:58 AMCzar
02/23/2018, 9:02 AMCzar
02/23/2018, 9:06 AMCzar
02/23/2018, 9:09 AM"1.2.21"
instead of referencing properties, I get the same problem. I think settings file is not evaluated at all, because none of my println("something") that I place there to check are reached.Czar
02/23/2018, 9:16 AMsettings.gradle.kts
, in ones which didn't work gradle.settings.kts
. gradle versions were irrelevant I just had two projects one with 4.4.1 (and correct file name) and one with 4.5.1 (and incorrect file name)gildor
02/23/2018, 9:23 AMgildor
02/23/2018, 9:23 AMCzar
02/23/2018, 9:26 AMCzar
02/23/2018, 9:28 AMgildor
02/23/2018, 10:30 AM