Amanda Martin
01/20/2023, 3:47 PMGavin Ray
01/20/2023, 8:55 PM.kts
files or `repl`'s.
Is there a way I can make a custom Gradle task in our build.gradle.kts
that launches a .kts
script that has our project code and library modules on the classpath for them?
Thank you!Arjan van Wieringen
01/21/2023, 8:55 AMJolan Rensen [JB]
01/21/2023, 3:25 PM@include
tag to include other comments into your KDoc / JavaDoc, see @include Processor (INCLUDE_DOC_PROCESSOR
)
• @sample
/ @sampleNoComments
tag to include code samples into your KDoc / JavaDoc (SAMPLE_DOC_PROCESSOR
)
• A processor that removes all KDoc / JavaDoc comments (NO_DOC_PROCESSOR
)
• A processor that adds a /** TODO */
comment wherever there is no KDoc / JavaDoc comment (TODO_DOC_PROCESSOR
)
• A processor that makes all KDoc / JavaDoc comments uppercase (try and make this for fun!)
• The sky is the limit :)
Note that this first release is still an early Alpha, but I'm welcome to feedback, bugs, your own processors and whatnot 🙂PoisonedYouth
01/21/2023, 7:13 PMPHondogo
01/23/2023, 6:29 AMPoisonedYouth
01/23/2023, 7:34 AMGavin Ray
01/23/2023, 2:49 PMval JDK_21_PATH = "/home/user/.sdkman/candidates/java/21.ea.6-open"
tasks.withType<org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain>().configureEach {
kotlinJavaToolchain.jdk.use(JDK_21_PATH, JavaVersion.VERSION_21)
}
Execution failed for task ':app:compileKotlin'.
> Error while evaluating property 'compilerOptions.jvmTarget' of task ':app:compileKotlin'.
> Failed to calculate the value of property 'jvmTarget'.
> Unknown Kotlin JVM target: 21
Pablichjenkov
01/23/2023, 5:38 PMtapchicoma
01/23/2023, 6:31 PMkotlin-reflect.1.8.0
leading to OOM in Kotlin Daemon (or kapt) MetaspaceIdo Flax
01/26/2023, 7:15 AMimplementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
But i can’t reference ShadowJar class in my main plugin (binary) code
Any advice?Ido Flax
01/26/2023, 4:27 PMExecution failed for task ':compileKotlin'.
> Default Kotlin compiler classpath is empty! Task: :compileKotlin (org.jetbrains.kotlin.gradle.tasks.KotlinCompile_Decorated)
And i can’t figure out why and what it means. Can anyone help?Arjan van Wieringen
01/27/2023, 3:57 PMSlackbot
01/28/2023, 9:51 AMIdo Flax
01/28/2023, 10:26 AMtakingUnaryClosure
since what gradle version is it available?Damien O'Hara
01/28/2023, 10:39 AM--continuous
had been passed?Tech
01/28/2023, 9:09 PMapi
that implements things from the module shared
however, when I publish api
locally then it can't find shared
even with shadow,
The error is
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
> Could not find io.github.tech:shared:0.0.1.
I have a module calledArjan van Wieringen
01/30/2023, 6:55 AMbuildSrc
, because I needed them in the precompiled scripts, I needed to add them to the implementation
block. However this resulted in the fact that they were on the classpath in the other projects as well and there I only needed to apply them when needed. This felt a bit weird, but writing it out it makes sense I think.... but it is not something I did before. Normally I would define the plugins in the root build.gradle.kts
with the apply
set to false
• IntelliJ IDE autocomplete and code-highlighting is terribly broken in the plugins. The only cure was restarting the IDE a lot of times. This made development a bit hard. I have the latest IDE.
• Getting the plugins from the version-catalog in the implementation
of the the buildSrc
I had to do weird string interpolation and separate getting of the plugin-id and plugin-version.
However, I learned a lot I think, but Gradle is still a very complicated powerful beast for me.
I have the working repository here: https://github.com/avwie/kotlinx Maybe if some people have some comments on how to do it better I'd like to know.Stylianos Gakis
01/31/2023, 10:33 PMzt
02/01/2023, 2:38 AMproject
inside of that configuration function. I can't use that since the compose plugin isnt in my project. Also implementation doesn't return the same type as project, and that doesn't work. Any ideas on what I can do?Sam Pengilly
02/01/2023, 3:40 AMClassNotFound: GradleWorkerMain
error in gradle builds? (Note that’s GradleWorkerMain, not GradleWrapperMain which is more commonly discussed as a source of issues).
This is happening only on CI build machines, and seemingly only upon reaching a test task (assemble ran fine, detekt ran fine, tests fail with that error).
In my CI environment there’s a collection of different projects with different gradle versions and the build machine has a few versions of JDK installed, so I feel like there’s potential for clashes/corruption somehow creeping in, especially since deleting the gradle caches seems to make the problem go away for a little while. Not really sure where to start to diagnose what exactly is triggering it
I’ve found next to no info on it in searches, everything just directs to the aforementions “GradleWrapperMain” errorPoisonedYouth
02/02/2023, 11:19 AMmike.holler
02/02/2023, 3:47 PMAdam S
02/03/2023, 9:11 AMCarter
02/03/2023, 2:03 PMbuildscript { dependencyLocking {lockAllConfigurations} }
Is this a bug in 1.8.10? Is there some kind of migration or API change I need to handle?
Execution failed for task ':assertion-lib:compileKotlinJvm'.
> Could not resolve all files for configuration ':assertion-lib:detachedConfiguration1'.
> Failed to transform kotlin-stdlib-jdk8-1.8.10.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for ClasspathEntrySnapshotTransform: /Users/carter/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.8.10/7c002ac41f547a82e81dfebd2a20577a738dbf3f/kotlin-stdlib-jdk8-1.8.10.jar.
> 'void org.jetbrains.kotlin.incremental.storage.ExternalizersKt.saveToFile(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.io.File, java.lang.Object)'
> Failed to transform kotlin-stdlib-jdk7-1.8.10.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for ClasspathEntrySnapshotTransform: /Users/carter/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.8.10/cb726a23c808a850a43e7d6b9d1ba91b02fe9f05/kotlin-stdlib-jdk7-1.8.10.jar.
> 'void org.jetbrains.kotlin.incremental.storage.ExternalizersKt.saveToFile(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.io.File, java.lang.Object)'
> Failed to transform kotlin-stdlib-1.8.10.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for ClasspathEntrySnapshotTransform: /Users/carter/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.10/6d5560a229477df9406943d5feda5618e98eb64c/kotlin-stdlib-1.8.10.jar.
> 'byte[] org.jetbrains.kotlin.incremental.storage.ExternalizersKt.toByteArray(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.lang.Object)'
> Failed to transform annotations-13.0.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for ClasspathEntrySnapshotTransform: /Users/carter/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar.
> 'void org.jetbrains.kotlin.incremental.storage.ExternalizersKt.saveToFile(org.jetbrains.kotlin.com.intellij.util.io.DataExternalizer, java.io.File, java.lang.Object)'
Arjan van Wieringen
02/03/2023, 2:24 PMdependencyResolutionManagement
also in a includeBuild
project even though I have defined them at the top level already in settings.gradle.kts
?Arjan van Wieringen
02/04/2023, 12:44 PMsettings.gradle.kts
I have:
includeBuild('plugins/conventions')
includeBuild('plugins/starters')
How can I reference plugins defined in conventions
in the starters
project? They are unable to resolve and I have no clue on how to add them to the dependencyResolutionMaangement of starters
.Ido Flax
02/05/2023, 1:27 PMYang
02/06/2023, 11:54 AMMark Vogel
02/07/2023, 12:45 AM