mkobit
05/15/2018, 3:17 PMsettings.gradle.kts
is red, but not my buildSrc/settings.gradle.kts
😕xenoterracide
05/15/2018, 5:14 PMmkobit
05/15/2018, 5:57 PMeskatos
05/15/2018, 6:43 PMsettings.gradle.kts
in the most recent log filemkobit
05/15/2018, 7:12 PMgradle/kotlinVersion.txt
and in settings.gradle.kts
that we refer to in a couple places
resolutionStrategy {
val kotlinVersion = Paths.get("gradle", "kotlinVersion.txt").toFile().readText().trim()
and also a dependencies.gradle
that we use in build.gradle
as apply from: 'dependencies.gradle'
file that does the same crap
ext {
versions = [
kotlin: Paths.get("gradle", "kotlinVersion.txt").getText(StandardCharsets.UTF_8.name()).trim(),
both of these lead to a
failure = org.gradle.tooling.BuildException: Could not fetch model of type 'KotlinBuildScriptModel' using Gradle installation '/home/mkobit/.gradle/wrapper/dists/gradle-4.7-all/4cret0dgl5o3b21weaoncl7ys/gradle-4.7'.
Caused by: java.nio.file.NoSuchFileException: gradle/kotlinVersion.txt` coming up
if i just change those to constants everything in the IDE is dandygradle.properties
and get it from there too, i think that'll work in the meantimeeskatos
05/16/2018, 9:30 AMPaths.get()
Why not use file("..")
that handles paths relative to the script whatever is the CWD?val kotlinVersion = file("gradle/kotlinVersion.txt").readText().trim()
and
def kotlinVersion = file(‘gradle/kotlinVersion.txt’).text.trim()
mkobit
05/16/2018, 12:27 PMeskatos
05/16/2018, 12:56 PMmkobit
05/16/2018, 1:01 PMfile
method was available in settings.gradle.kts
, thanks for the pointereskatos
05/16/2018, 1:10 PM