Satyarth Sampath
07/22/2022, 6:35 AM$project/settings.gradle.kts
or at $rootProject/settings.gradle.kts
. Gradle throws an error if I try to define this in multiple locations(https://docs.gradle.org/7.5/userguide/version_catalog_problems.html#too_many_import_invocation) . However defining it only on the root project does not help in accessing these in the included builds.Javi
07/22/2022, 11:24 AMtasks.withType<Test>().configureEach {
maxParallelForks = 1
}
Sebastian Schuberth
07/24/2022, 8:03 PM>
rows in the CLI output. Is that on purpose? And is this documented somewhere?Daymon
07/25/2022, 3:20 AMSuraj Singh
07/25/2022, 4:41 PMClayton Walker
07/25/2022, 6:31 PMkotlin-dsl
support implementation(kotlin("stdlib-jdk8"))
? I can't seem to get the Path.readText()
extension function to resolveLe-Tao Li
07/25/2022, 6:46 PM./gradlew run
* What went wrong:
Execution failed for task ':yubico-util:compileJava'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
Clayton Walker
07/25/2022, 9:08 PMrepositories {
company()
}
injected into our gradle files.Jacob Skillin
07/25/2022, 9:21 PMAlan Larkin
07/27/2022, 10:43 AMEli Graber
07/27/2022, 8:40 PM--no-parallel
. I remember there used to be an issue if you don't include that flag, but I don't remember what that was.
Does anyone know if that is still necessary?Eli Graber
07/27/2022, 10:08 PMtasks.withType(org.gradle.plugins.signing.Sign) { signingTask ->
tasks.withType(org.gradle.api.publish.maven.tasks.AbstractPublishToMaven) { publishTask ->
publishTask.dependsOn(signingTask)
}
}
Can this be done with configuration avoidance? Another comment suggests using configureEach
but then `withType`can't be nested under it.anita ann
07/28/2022, 3:27 AMdependencyResolutionManagement {
versionCatalogs {
libs {
version('helidon', '2.4.2')
version('kafka', '2.5.1')
library('avro', 'org.apache.avro', 'avro').version {
strictly '1.8.2'
}
...
Andrei Kulik
07/28/2022, 8:16 AMSlackbot
07/28/2022, 9:18 AMEli Graber
07/28/2022, 10:11 AMdependencyResolutionManagement
block and the pluginManagement
block in settings.gradle.kts
(because I have repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
set).
Is the process for that any different than creating a regular plugin?Eli Graber
07/28/2022, 10:38 PMAction
over a lambda when using Kotlin other than better Groovy compat?John Bellini
07/29/2022, 12:48 AMExecution failed for task ':healthyCodeScan'. > kotlin/jvm/JvmInline
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':healthyCodeScan'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268)
...
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: java.lang.NoClassDefFoundError: kotlin/jvm/JvmInline
at com.fasterxml.jackson.module.kotlin.ExtensionsKt.isUnboxableValueClass(Extensions.kt:128)
at com.fasterxml.jackson.module.kotlin.KotlinSerializers.findSerializer(KotlinSerializers.kt:107)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory._createSerializer2(BeanSerializerFactory.java:215)
at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:173)
at com.fasterxml.jackson.databind.SerializerProvider._createUntypedSerializer(SerializerProvider.java:1495)
at com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1443)
at com.fasterxml.jackson.databind.SerializerProvider.findValueSerializer(SerializerProvider.java:544)
at com.fasterxml.jackson.databind.SerializerProvider.findTypedValueSerializer(SerializerProvider.java:822)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:308)
at com.fasterxml.jackson.databind.ObjectMapper._writeValueAndClose(ObjectMapper.java:4568)
at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3821)
at com.ea.gradle.healthycode.HealthyCodeScan.getScanRequestPayload(HealthyCodeScan.kt:207)
Seems like a kotlin version mismatch? Thoughts are appreicatedEli Graber
07/29/2022, 5:28 AMError resolving plugin [id: 'io.gitlab.arturbosch.detekt', version: '1.21.0']
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
Should I be using the compileOnly
configuration for these dependencies in my library, or will I have to address this some other way?Alan Larkin
07/29/2022, 8:56 AMapplicationDefaultJvmArgs
appear in the resulting start script (linux) inside single quotes, which prevents variable expansion. In particular it means you can't reference $APP_HOME
. All the suggestions I've seen rely on using a doLast
to perform text replacements on the start script. Is that really the best/current advice? It seems very clunky. (Context: trying to add the distributed lib/
directory to java.library.path
)Lilly
07/29/2022, 4:49 PMid("org.jetbrains.kotlin.jvm")
applied can not depend on a gradle module with id("com.android.application")
?Camilo A. Navas
07/29/2022, 5:46 PMEli Graber
07/29/2022, 7:25 PMbuildscript
in settings.gradle.kts
? I know I could use buildSrc
or an included build, but I want to try to avoid that.Vitaly Polonetsky
07/29/2022, 8:07 PMenforcedPlatform
in a task? I've tried configuration.implementation.getAllDependencyConstraints()
but that doesn't include enforcedPlatform constraints.René
07/29/2022, 9:10 PMgradle.taskGraph.whenReady { taskGraph ->
taskGraph.allTasks.each { Task task ->
// som custom test listener registeration
}
}
this taskgraph
does not contain included builds taskGraph. Is there. a generic way to approach the task graph of an included build from an init script? Yeah I know they should use the wonderful testLauncher API ot the tooling api I wrote back in the days, but they don't and I hoped for an easy fix for now. any ideas?Stylianos Gakis
07/30/2022, 9:13 PM:engineering
.
If I were to only do debugImplementation(":engineering")
from my main :app
module, when I am building with any non “debug” version, I can’t resolve the symbols.
One approach I’ve just tried and seems to work is I’ve created a :engineering-noop
module, which exposes the exact same API as :engineering
but simply doesn’t do anything. (In my case the public exposed information was one Koin module, so it’s simple for the noop module to expose that as module {}
but this can and will get bigger as time goes) and then I add releaseImplementation(:engineering-noop)
on top of the debug impl of normal “engineering” and the symbols get resolved properly.
But is this the only option I have? Is there any where I won’t have to make a noop copy where I need to keep up with the public API of :engineering
?Javi
07/31/2022, 3:51 PMThis version of Gradle expects version '2.3.3' of the `kotlin-dsl` plugin but version '2.4.1' has been applied to project ':hubdle-settings-gradle-plugin'. Let Gradle control the version of `kotlin-dsl` by removing any explicit `kotlin-dsl` version constraints from your build logic.
Eli Graber
07/31/2022, 7:40 PMafterEvaluate
is appropriate when waiting for an extension to get configured? I have in my head that it's always a bad idea to use afterEvaluate
For example, I have a convention plugin for configuring KGP, but there are a few differences between some of my projects that use it, so I want to provide an extension to override the defaults if necessary (code in 🧵 ).
https://gradle-community.slack.com/archives/CAHSN3LDN/p1659136367577919?thread_ts=1659003074.335789&cid=CAHSN3LDNEli Graber
07/31/2022, 10:49 PMSlackbot
08/01/2022, 10:22 AM