Lucas Holden
08/12/2025, 11:16 PMJames Smith
08/12/2025, 11:37 PMLucas Holden
08/13/2025, 7:42 PMMapProperty<String, List<Object>>
in my plugin extension. I need another plugin to merge items into the map instead of overwriting it like put
does.
I thought this would work:
extMap.putAll(extMap.map { m ->
m.keys.forEach { k ->
m.merge(k, myValues(), { l1, l2 -> l1 + l2 })
}
return@map m
})
but instead it causes a stack overflow error due to the value depending on itself.
I also can't add elements in Project.afterEvaluate
because MapProperty#get
returns an ImmutableMap.
How do I add items to the lists in the map?tony
08/15/2025, 5:53 PMBehnam Banaei
08/16/2025, 7:27 AMCaleb Cushing
08/16/2025, 12:58 PMJavi
08/16/2025, 2:51 PM* What went wrong:
A problem occurred configuring project ':semver-gradle-plugin'.
> Failed to notify project evaluation listener.
> Cannot mutate the hierarchy of configuration ':semver-gradle-plugin:apiElements' after the configuration was published as a variant. After a configuration has been observed, it should not be modified.
> Gradle Module Metadata can't be modified after an eagerly populated publication.
Javi
08/17/2025, 10:29 AMdependencyProject
is deprecated but on the deprecation it is not shown any alternative 🤔محمد اسامه البدوي
08/17/2025, 11:52 AMWhat is the solution to this error?
``````Mez
08/17/2025, 10:04 PMMartmists
08/18/2025, 12:18 PMtasks.named(...).isPresent
, but it seems tasks.named is throwing an UnknownTaskException instead?Martmists
08/18/2025, 12:18 PMproject.providers.exec { ... }.result.get()
?uday nani
08/18/2025, 2:44 PMGijs Leussink
08/19/2025, 7:58 AMClass org.gradle.jvm.toolchain.JvmVendorSpec does not have member field 'org.gradle.jvm.toolchain.JvmVendorSpec IBM_SEMERU'
What am I running into?
In build.gradle
I have declared:
java {
toolchain {
languageVersion = JavaLanguageVersion.of(24)
vendor = JvmVendorSpec.GRAAL_VM
}
}
Martmists
08/19/2025, 7:49 PMRené
08/19/2025, 8:09 PMRajeesha R
08/20/2025, 6:20 AMPhilipp Nowak
08/21/2025, 9:29 AM./gradlew :app:dependencies
I receive the following exception:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-1-thread-1"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
I am using org.gradle.jvmargs=-Xmx10240m
and also increasing it to 12 GB didn't help. All the other tasks just run fine, e.g. building, testing etc. - the activated configuration cache is on develop for a few days now already.
Does anyone have an idea what could cause the OOM on the dependencies task and how to fix it? Deactivating the configuration cache fixes it but should not be an option here 😄Ben Bader
08/21/2025, 6:43 PM> Could not resolve com.google.cloud.tools:jib-gradle-plugin:3.4.5.
Required by:
settings file 'settings.gradle' > com.google.cloud.tools.jib:com.google.cloud.tools.jib.gradle.plugin:3.4.5
> Could not resolve com.google.cloud.tools:jib-gradle-plugin:3.4.5.
> Could not get resource '<https://plugins.gradle.org/m2/com/google/cloud/tools/jib-gradle-plugin/3.4.5/jib-gradle-plugin-3.4.5.pom>'.
> Could not GET '<https://plugins-artifacts.gradle.org/com.google.cloud.tools/jib-gradle-plugin/3.4.5/760ae3b530620eea5483f15fe876fd30ac44e5dcb7eafca4d63e613ea0d80750/jib-gradle-plugin-3.4.5.pom>'.
> Remote host terminated the handshake
Ivan CLOVIS Canet
08/25/2025, 7:16 PMSync
task deletes all files in the target directory, and then copies the new ones over.
Is it possible to configure Sync
(or some other task) to NOT touch the files that haven't changed? I'm using another tool afterwards, which reacts to the files being deleted, even though they are immediately recreated identically.Philip W
08/26/2025, 12:25 PMAdam
08/26/2025, 5:00 PMKelvin Chung
08/27/2025, 1:35 AMJakub Chrzanowski
08/27/2025, 12:38 PMaProvider.zip(bProvider) { a, b -> MyData(a, b) } // Provider<MyData>
but this is fine for merging two providers. What about when I have more of them? Would this be acceptable from the design perspective?
providerFactory.provider {
MyData(a.get(), b.get(), c.get(), d.get())
}
André Martins
08/27/2025, 3:09 PM./gradlew my-task1 &
and then grabbing the process ids and wait on them. The thing is I'm getting the following error
Timeout waiting to lock build logic queue. It is currently in use by another Gradle instance.
Owner PID: 456
Our PID: 512
Owner Operation:
Our operation:
Lock file: /home/cicd/.gradle/noVersion/buildLogic.lock
I'm setting org.gradle.daemon=false
in my gradle.properties
file, however I believe this might be related with the buildSrc as it is shared and we might not be able to build it concurrently? Is that it? If so any ideias on how to do such
Note: I'm not using --parallel
because im calling same tasks with different values for parameters.
Thanks in advance ✌️Jakub Chrzanowski
08/28/2025, 9:18 AMconfigurations[configurationName].dependencies.addLater(
myProvider.map { myValue ->
println("myValue=$myValue")
return ...
}
)
And yes, this gets printed 20-30 times when the project is being configured.
Is that expected, and I shouldn't interfere with that, or is using a cached provider a good choice here?Christian Beikov
08/29/2025, 1:59 PMSebastian Schuberth
08/29/2025, 6:05 PMsettings.gradle.kts
I have
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
mavenCentral()
}
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
create("jackson") {
from("com.fasterxml.jackson:jackson-bom:2.20.0")
}
}
}
which leads to
Could not resolve all artifacts for configuration 'incomingCatalogForJackson0'.
> Could not resolve com.fasterxml.jackson:jackson-bom:2.20.0.
Required by:
unknown
> No matching variant of com.fasterxml.jackson:jackson-bom:2.20.0 was found. The consumer was configured to find attribute 'org.gradle.category' with value 'platform', attribute 'org.gradle.usage' with value 'version-catalog' but:
- Variant 'compile':
- Incompatible because this component declares attribute 'org.gradle.category' with value 'library', attribute 'org.gradle.usage' with value 'java-api' and the consumer needed attribute 'org.gradle.category' with value 'platform', attribute 'org.gradle.usage' with value 'version-catalog'
- Variant 'enforced-platform-compile':
- Incompatible because this component declares attribute 'org.gradle.category' with value 'enforced-platform', attribute 'org.gradle.usage' with value 'java-api' and the consumer needed attribute 'org.gradle.category' with value 'platform', attribute 'org.gradle.usage' with value 'version-catalog'
What's wrong with my syntax?JamesX
08/30/2025, 1:45 AMbuildSrc
project and an "external" build which creates some gradle plugins. It used to be that I could enable Composite Build in the intellij UI, and then it would resolve my plugin classes back to source when navigating from buildscripts (very nice!) ...but, since upgrading to gradle 8, it seems that my buildSrc
is always listed as a composite, which prevents intellij from showing the option to enable composites (if I enable composites in settings.gradle, the gui option is normally removed, but it also doesn't work properly in IDE).
So, does anyone have any ideas or suggests? gpt suggested removing buildSrc/settings.gradle
but that didn't help, and manually printing the included builds shows nothing.
I'll attach the xml I pulled from .idea/gradle.xml
in a thread, in case it helps.Thomas Keller
09/02/2025, 9:00 AM