Dima Avdeev
11/15/2018, 4:56 AMDias
11/15/2018, 12:38 PMirus
11/15/2018, 4:15 PMFAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Could not open cache directory awcx1ns6ov4f85padchiv40ym (/builds/projectname/.gradle/caches/5.0-rc-2/gradle-kotlin-dsl/awcx1ns6ov4f85padchiv40ym).
> Java heap space
Adrian Wawrzak
11/16/2018, 1:25 PMjava.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
. I see that kotlin folder was correctly compiled into .jarikej
11/17/2018, 12:40 PMMelodeiro
11/18/2018, 12:18 AMchristianbecker
11/18/2018, 1:40 PM.gradle.kts
files that will be included via apply { from("tasks.gradle.kts") }
? I've extracted some build logic into this new tasks.gradle.kts
file, but unfortunately, I can't reference any class from the original classpath of the build.gradle.kts
. Is this intended? If so, is there any way to make the classpath available to the tasks.gradle.kts
file?Nikky
11/19/2018, 9:49 AMClaudiuB
11/19/2018, 2:33 PMI'm planning on making a Kotlin library for core Android logic of my apps. Is there a gradle plugin/distribution playtform any of you can recommend?
Bernhard
11/21/2018, 9:36 AMalwyn
11/21/2018, 2:48 PMVladyslav Sitalo
11/21/2018, 5:31 PMsystemProp.sonar.host.url=<http://localhost:9000>
in settings.gradle
?zjuhasz
11/23/2018, 3:33 PMoctylFractal
11/25/2018, 10:27 PMthanksforallthefish
11/26/2018, 4:16 PMelect
11/26/2018, 6:26 PM'operator' modifier is required on 'get' in 'org.gradle.api.tasks.TaskProvider
on from(tasks["javadoc"])
efemoney
11/26/2018, 10:31 PMbuildTypes {
getByName("debug") {
...
}
}
instead of
buildTypes {
"debug" {
...
}
}
I can see a NamedDomainObjectContainerScope
that defines the String.invoke
extension but I’m not able to use it without explicitly specifying
buildTypes.invoke {
"debug" {
...
}
}
(possibly because the android plugin defines fun buildTypes(Action<BuildType>)
).
Is there a way to force the script to look like the second snippet above? (I believe Kotlin JVM had an annotation that would give the object extension more priority over the object member 🤔)kenkousen
11/26/2018, 10:36 PMbuild.gradle.kts
file, I want to specify that Kotlin compile to 1.8. I’m using the following syntax, which works, but I was wondering whether this is idiomatic or if there’s a simpler way:
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
Czar
11/27/2018, 10:41 AMby getting
. Question is why this doesn't work anymore and, if it was intended that way, what alternative way exists besides the more verbose version I've already listed above.Czar
11/27/2018, 10:46 AMnamed
was compatible with configuration avoidance, or is it the fact that I'm using compileKotlin
delegate that forces the config?eskatos
11/27/2018, 11:04 AMSlava Glushenkov
11/27/2018, 2:22 PMkingsley
11/27/2018, 4:29 PMadev_one
11/27/2018, 4:35 PM.gradle.kts
of modules placed out of project dir. How can I fix it?
Build works fine.
Reproducer:
https://github.com/a-dminator/dsl-reproducer
I’m using Intellij Idea Ultimate 2018.3Czar
11/27/2018, 7:50 PM./gradlew clean classes --parallel
takes about 1.5 minutes on my machine, with gradle 5.0, same command, same project, same machine - about 12 minutes... I thought gradle 5.0 was supposed to be faster 😄
Seems like most time is spent on dependencies resolution. Are there any known problems with that? Especially when using Spring dependency-management plugin?elect
11/28/2018, 8:19 AMkotlin-reflect
dependency via gradle plugin dsl?dwursteisen
11/28/2018, 11:10 AMdharrigan
11/28/2018, 1:42 PMjmfayard
11/30/2018, 5:36 AMPerformance > Build Cache
looks interesting!
- Oh where is it, I don't see it?
- Let me check the Switches
page
- Oh, the build cache was not enabled!
- Oh and there is a link that gives me the one-liner on how to enable it
- $ ./gradlew clean install
for a project of mine now takes 6s instead of 25s!!
Links to the Performance
tabs:
https://scans.gradle.com/s/vrcqv44wk7sok/performance/buildCache
Re: @christophsturm Note that I enabled the buildScan plugin by default, see commentDima Avdeev
12/01/2018, 8:55 AMDima Avdeev
12/01/2018, 8:55 AM