Sasha Zimm
11/25/2017, 2:03 PMjkbbwr
11/26/2017, 2:49 AMCaused by: org.gradle.cache.CacheOpenException: Could not open cache directory aat8l8gx46xy6a1lqc8xd1ny9 (/home/jakob/.gradle/caches/4.3.1/gradle-kotlin-dsl/aat8l8gx46xy6a1lqc8xd1ny9).
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.open(DefaultPersistentDirectoryStore.java:61)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.open(DefaultPersistentDirectoryStore.java:32)
at org.gradle.cache.internal.DefaultCacheFactory.doOpen(DefaultCacheFactory.java:90)
at org.gradle.cache.internal.DefaultCacheFactory.open(DefaultCacheFactory.java:64)
at org.gradle.cache.internal.DefaultCacheRepository$PersistentCacheBuilder.open(DefaultCacheRepository.java:123)
at org.gradle.kotlin.dsl.cache.ScriptCache.cacheDirFor(ScriptCache.kt:51)
at org.gradle.kotlin.dsl.cache.ScriptCache.cacheDirFor$default(ScriptCache.kt:43)
at org.gradle.kotlin.dsl.provider.CachingKotlinCompiler.cacheDirFor(CachingKotlinCompiler.kt:170)
at org.gradle.kotlin.dsl.provider.CachingKotlinCompiler.compileScript(CachingKotlinCompiler.kt:131)
at org.gradle.kotlin.dsl.provider.CachingKotlinCompiler.compileBuildScript(CachingKotlinCompiler.kt:111)
at org.gradle.kotlin.dsl.provider.KotlinBuildScriptCompiler.compileScriptFile(KotlinBuildScriptCompiler.kt:239)
at org.gradle.kotlin.dsl.provider.KotlinBuildScriptCompiler.executeScriptBodyOn(KotlinBuildScriptCompiler.kt:111)
at org.gradle.kotlin.dsl.provider.KotlinBuildScriptCompiler.prepareAndExecuteScriptBodyOn(KotlinBuildScriptCompiler.kt:105)
at org.gradle.kotlin.dsl.provider.KotlinBuildScriptCompiler.access$prepareAndExecuteScriptBodyOn(KotlinBuildScriptCompiler.kt:48)
at org.gradle.kotlin.dsl.provider.KotlinBuildScriptCompiler$compileTopLevelScript$1.invoke(KotlinBuildScriptCompiler.kt:88)
at org.gradle.kotlin.dsl.provider.KotlinBuildScriptCompiler$compileTopLevelScript$1.invoke(KotlinBuildScriptCompiler.kt:48)
at org.gradle.kotlin.dsl.provider.KotlinScriptPlugin.apply(KotlinScriptPlugin.kt:48)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:61)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:58)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:41)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:64)
... 84 more
jkbbwr
11/26/2017, 3:19 AMe: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
When using java9jkbbwr
11/26/2017, 1:16 PMvoddan
11/26/2017, 2:39 PMg4sarma
11/27/2017, 9:31 PMg4sarma
11/27/2017, 9:33 PMnikolaymetchev
11/28/2017, 2:17 PMHasImplicitReceiver
annotation works on the Action
interface but it seems to workin build.gradle.kts and doesn't seem to work in *.kt files in buildSrc. I have to explicitly cast to the receiver: private fun KotlinBuildScript.setupIvyRepository() {
plugins.apply("org.gradle.ivy-publish")
val conf: org.gradle.api.publish.PublishingExtension.() -> Unit = {
repositories {
this as RepositoryHandler
ivy {
this as IvyArtifactRepository
url = URI("file:////C:/Temp/ivy.local")
layout("pattern") {
this as IvyPatternRepositoryLayout
ivy("[module]/[revision]/ivy.xml")
artifact("[module]/[revision]/[artifact]-[type].[ext]")
}
}
}
}
extensions.configure("publishing", conf)
}
rocketraman
11/28/2017, 10:32 PMresolutionStrategy
or is there a more elegant approach?nikolaymetchev
11/29/2017, 2:52 PMCould not find Kotlin Compiler classpath. Please specify compileKotlin.compilerClasspath
. Anybody know what is going on?Marcel Overdijk
11/30/2017, 8:14 AM1.2.0
easily?bamboo
11/30/2017, 5:56 PMflstaats
11/30/2017, 9:15 PMdylan
12/01/2017, 11:28 AMBuild cache type 'com.drost.buildcache.minio.MinioPlugin' has not been registered.
I have the gradle-plugins file in meta inf with implementation-class=com.drost.buildcache.minio.MinioPlugin
which I set with the java-gradle-plugin
dharrigan
12/05/2017, 1:22 PM${property("foo")}
inside dependencies definitions, i.e., compile("com.google.protobuf:protobuf-java:${property("protobufVersion")}")
I know there is another way of defining the var inside the kts file, var foo="1.2"
then using $foo
inside the dependency definition. The latter being more "groovy" like (without the var definition). Is there no shorter way of expressing this?napperley
12/06/2017, 10:15 PMmkobit
12/06/2017, 10:48 PMtasks.getting
is working for me for all val dokka by tasks.getting
and tasks { val dokka by getting(DokkaTask::class) }
, and val dokka by tasks.getting(DokkaTask::class)
napperley
12/07/2017, 12:45 AMCzar
12/07/2017, 11:44 AMproject(":child:grandchild") {
plugins {
id("war")
id("org.springframework.boot")
}
dependencies {
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
//...
}
//...
}
gives me unresolved reference: providedRuntime
Any ideas?leodeng
12/07/2017, 12:31 PMprovidedRuntime
probably should be within a dependencies
block.eskatos
12/07/2017, 3:16 PMgildor
12/08/2017, 6:26 AMtasks {
"bower" {
dependsOn("gulp_bower")
}
}
masc3d
12/08/2017, 1:45 PMkotlin.copyClassesToJavaOutput = true
and it works well in our setup, but it causes tests to run twice when using the gradle test runnersdeleuze
12/09/2017, 12:11 AMsourceDirs = files(subprojects.collect { project -> project.sourceSets.main.kotlin.srcDirs })
. What can I use to get only the Kotlin source dirs ?mkobit
12/11/2017, 8:35 PMbuild.gradle.kts
in the directory that can't be compiled.kartikpatodi
12/12/2017, 6:13 PMdagguh
12/12/2017, 7:41 PMUsing Kotlin incremental compilation
info?StefMa
12/13/2017, 7:34 AMtask("Hello") {
println("Hello World")
}
This works.
Now I wanted to map this to my android project.
I’ve updated the script to:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath("com.android.tools.build:gradle:3.0.1")
}
}
apply {
plugin("com.android.application")
}
android {
compileSdkVersion("26")
}
But if I run it I get:
build.gradle.kts181: Unresolved reference: android
build.gradle.kts193: Unresolved reference: compileSdkVersionWhat I’m doing wrong? I’ve already checked out the samples. With the hello-android I don’t have that issue 😕
Czar
12/13/2017, 10:31 AMcompile(kotlin("stdlib", "1.2.0"))
won't help, you'll have to specify it for all stdlib variants if you want to do it like that. gradle.properties
is easier, IMO.Czar
12/13/2017, 10:48 AMkotlinVersion
for dependencies in this case, I do though, because project I copied this from is a lib, and if I don't the version is not properly resolved on the project which is depending on my lib.