Adam
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 AMNiels Doucet
09/02/2025, 2:44 PMChristian Beikov
09/03/2025, 1:56 PMMatthew Von-Maszewski
09/03/2025, 3:46 PMtasks.create(name: 'dist', dependsOn: subprojects.publishInternal) {
Often execute "./gradlew dist". Sometimes execute "./gradlew clean dist". The latter works fine until setting "org.gradle.parallel=true". What is the correct way to say dist must execute after clean if and only if clean is being executed?tony
09/03/2025, 4:13 PMProcessBuilder
(vs ExecOperations
) during Gradle config? IIRC, configuration cache doesn't know anything about such a process and can't treat it as part of the cache key? Does it "break" CC in any way?Eli Graber
09/03/2025, 4:17 PMwithPluginClasspath
when testing my plugin that interfaces with AGP, however AGP is a compileOnly
dependency in my project. I tried also adding it as a testImplementation
dependency, but I'm still getting errors like:
> Failed to apply plugin 'com.eygraber.release-tag-version-code'.
> Could not create plugin of type 'ReleaseTagVersionCodePlugin'.
> Could not generate a decorated class for type ReleaseTagVersionCodePlugin.
> com/android/build/gradle/AppPlugin
Changing the AGP dependency to implementation
makes the test work, but I'd prefer to keep compileOnly
. Any options?Christian Laiter
09/03/2025, 5:57 PM* What went wrong:
Execution failed for task ':capacitor-android:compileReleaseJavaWithJavac'.
> error: invalid source release: 21
Not sure If I'm posting in the right place or asking the right question, but if anyone could assist it would be greatly appreciated!Nadav Gampel
09/04/2025, 2:34 PMAlex Beggs
09/04/2025, 3:31 PMJames Daugherty
09/05/2025, 3:18 PMFlorian Eula
09/05/2025, 3:35 PMHarry Jackson
09/05/2025, 6:01 PMIvan CLOVIS Canet
09/05/2025, 7:45 PMCopySpec
so it's possible to write
from(project.tasks.named(configTask))
from(project.tasks.named(sourceTask)) {
into("kotlin") // ← this
}
(like is possible with the native Copy
and Sync
tasks)?Sergej Koščejev
09/07/2025, 9:23 AMAxel Bock
09/08/2025, 10:30 AMio.netty:netty-codec-http:4.1.124.Final
\--- io.netty:netty-codec-http2:4.1.124.Final
\--- software.amazon.awssdk:netty-nio-client:2.33.4 (requested io.netty:netty-codec-http2:4.1.126.Final)
\--- software.amazon.awssdk:s3:2.33.4
\--- runtimeClasspath
So I am getting the latest awssdk:s3, which asks for netty 4.1.126.Final. However gradle chooses to pick jetty 4.1.124.Final instead. I don't have any other dependencies to jetty in the project (transitive or direct).
This is the info by dependencyInsight:
io.netty:netty-codec-http:4.1.124.Final (selected by rule)
Variant runtime:
| Attribute Name | Provided | Requested |
|--------------------------------|--------------|--------------|
| org.gradle.status | release | |
| org.gradle.category | library | library |
| org.gradle.libraryelements | jar | jar |
| org.gradle.usage | java-runtime | java-runtime |
| org.gradle.dependency.bundling | | external |
| org.gradle.jvm.environment | | standard-jvm |
| org.gradle.jvm.version | | 21 |
Can someone explain?Sergej Koščejev
09/10/2025, 11:36 AMdef files = configurations.myConfig.incoming.artifactView {
attributes.attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, "pom")
}.files.files
println("Files: $files")
Brice Dutheil
09/10/2025, 12:41 PM--scan
condition, the following code fails
develocity {
buildScan {
termsOfUseUrl.set("<https://gradle.com/help/legal-terms-of-use>")
termsOfUseAgree.set("yes")
publishing {
onlyIf {
(System.getenv("CI") != null) or gradle.startParameter.isBuildScan
}
}
}
}
with a serialization issue
1 problem was found storing the configuration cache.
- Gradle runtime: cannot serialize object of type 'org.gradle.initialization.DefaultSettings', a subtype of 'org.gradle.api.initialization.Settings', as these are not supported with the configuration cache.
See <https://docs.gradle.org/9.0.0/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types>
Maybe you have more ideas on this ?Adam
09/11/2025, 7:01 AMACC_PUBLIC | ACC_SYNTHETIC
be replaced with ACC_PUBLIC | ACC_SYNTHETIC | ACC_STATIC
?Satyarth Sampath
09/11/2025, 8:56 AMClayton Walker
09/11/2025, 6:10 PMChristian Beikov
09/12/2025, 3:26 PMorg.gradle.test.worker
system property?gaurav
09/12/2025, 3:49 PMimplementation '<sample-dependency>'
in a child module by getting all dependencies from dependency management of root pom.xml. Is there an easy fast way to achieve the end result here?
P.S. Other teams dont want to move to gradle and parent pom will also remain in maven, hence want to navigate this situation for my team to get incremental compilation support to a big child module where changing small things leads to recompiling of 10k+ classes. 🙏