Philip W
10/30/2025, 6:33 AMCaleb Cushing
10/30/2025, 1:07 PMjava.lang.IllegalArgumentException: Cannot have abstract method FileSystemLocationProperty.getAsFile(): Provider<File>.
full stack/repo
https://github.com/xenoterracide/gradle-semver/actions/runs/18941346345/job/54080662841?pr=494#step:5:437Colton Idle
10/30/2025, 1:40 PMawsRepoUrl=<https://1234567890.d.codeartifact.us-east-1.amazonaws.com/maven/my-repo/>
awsUsername=aws
awsPassword=eyJ0eXAiOiJKV1QiLCJh...
and
maven {
url = uri(awsRepoUrl)
credentials {
username = awsUsername
password = awsPassword
}
}Chris Lee
10/31/2025, 12:40 AMdistZip no longer pulls the filesystem permissions.
We could force that via useFileSystemPermissions but seems cleaner to set the explicit/desired permissions in the build script.
But doing that seems to be incompatible with the configuration cache.
Seems like filePermissions is incompatible with configuration cache?
plugins {
application
}
tasks.named<Zip>("distZip") {
// setting permissions here fails as properties are finalized already
// filesMatching("**/*") {
// filePermissions {
// unix("rwxr-xr-x")
// }
// }
}
distributions {
main {
contents {
filesMatching("bin/**") {
// simply adding "filePermissions" fails
// Cause: class org.gradle.api.internal.file.copy.DefaultCopySpec cannot be cast to class org.gradle.api.file.FileCollection (org.gradle.api.internal.file.copy.DefaultCopySpec and org.gradle.api.file.FileCollection are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @3043fe0e)
filePermissions {
unix("rwxr-xr-x")
}
}
}
}
}Maksym Moroz
10/31/2025, 2:20 PMCalculating task graph as configuration cache cannot be reused because init script '../../../../private/var/folders/32/33qr05gj24jbrq7qvg4c1fjh0000gn/T/ijJvmDebugger1.gradle' has changed.
Any idea what might be causing this to happen from time to time?Bob Ham
10/31/2025, 2:40 PMoriginalTask.dependsOn myBits; myBits.shouldRunAfter originalTask but myBits still runs before originalTaskBob Ham
10/31/2025, 2:44 PMtask.named to create my bits but I get an error: The task '...' (org....Task) is not a subclass of the given typeBob Ham
10/31/2025, 3:39 PMspdxSbom {
targets {
create("release") {
configurations.set(["projectCustReleaseRuntimeClasspath"])
}
}
}
python.pip 'spdx_tools:0.8.3'
tasks.register("convertSpdxRelease", PythonTask) {
...
}
spdxSbomForRelease.finalizedBy convertSpdxRelease
convertSpdxRelease.dependsOn spdxSbomForRelease
and here is the error:
* What went wrong:
A problem occurred evaluating root project 'CustKeyboard_Studio'.
> Could not create task ':spdxSbomForRelease'.
> Configuration with name 'projectCustReleaseRuntimeClasspath' not found.
The task works fine if I comment out the configurations.set(... or if I comment out both the finalizedBy and dependsOn statements.
Anyone have a clue as to why that might be?Anish Sandeep Bhargav
10/31/2025, 8:50 PMНиколай Клебан
11/03/2025, 7:26 PMbuild-tools as includedBuild?
I’ve configured the AS to use the Gradle wrapper (version 8.14.3), but for some reason, another daemon starts up using the 9.0-milestone-1 distribution.Mike Wacker
11/03/2025, 10:35 PMcomposeUp task for the avast.gradle.docker-compose to run first if the test task is out-of-date, but it (and the composeDown task) should abe skipped if the test task is skipped.
Context: https://github.com/avast/gradle-docker-compose-plugin/issues/453Andy Damevin
11/05/2025, 7:20 PMmavenCentral() {
metadataSources {
gradleMetadata()
mavenPom()
}
}
the weird thing is that for other repos such as guava or junit, it does look for the .module file in central even without this conf. I might be missing something..
2025-11-05T20:17:32.455+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Metadata of <https://repo.maven.apache.org/maven2/io/mvnpm/esbuild-java-native-deps/2.0.0-beta-2/esbuild-java-native-deps-2.0.0-beta-2.pom>'
2025-11-05T20:17:32.456+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Metadata of <https://repo.maven.apache.org/maven2/io/mvnpm/esbuild-java-native-deps/2.0.0-beta-2/esbuild-java-native-deps-2.0.0-beta-2.pom>' completed
...
2025-11-05T20:17:32.308+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Metadata of <https://repo.maven.apache.org/maven2/com/google/guava/guava/33.5.0-jre/guava-33.5.0-jre.module>'
2025-11-05T20:17:32.308+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Metadata of <https://repo.maven.apache.org/maven2/com/google/guava/guava/33.5.0-jre/guava-33.5.0-jre.module>' completedvalluru saiteja
11/09/2025, 10:22 AMplugins {
// Declare the SonarQube plugin here but don't apply it automatically.
// This makes the plugin available to all subprojects using the same version,
// while allowing us to selectively apply it only to relevant modules (e.g., exclude 'bom' or root).
id 'org.sonarqube' version '7.0.1.6134' apply false
}
subprojects {
if (project.name != 'bom') {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
apply plugin: 'org.sonarqube'
afterEvaluate {
if (project.name == "sai" || project.name == "sai1" || project.name == "sai2") {
// Skip SonarQube analysis for these projects
sonar {
skipProject = true
}
} else {
// Apply SonarQube properties for other projects
sonar {
properties {
property "sonar.host.url", "<https://sonar.sai.com>"
property "sonar.projectKey", "sai.eas.app-gradle"
property "sonar.projectName", "sai-eas.app-gradle"
property "sonar.token", "sai_faefefibbvkbrkbrbkbbvrkb123456"
property "sonar.sources", "src/main/java"
property "sonar.tests", "src/test/java"
// Add other required properties here
}
}
}
}
}
}
While running in local at first it analyzed and publish the reports to sonarqube server(Not for all componenets just 1 or 2 ). inside modules there will be submodules. If a particular module doesn't contain say for example src/tst/java the sonarscan should skip and go for next module ...in my case it was failing right after that stage. I was using the command "gradle sonar --info"Igor Mukhin
11/10/2025, 11:00 AMSachin Bavale
11/10/2025, 11:08 AMEug
11/10/2025, 1:37 PMCaleb Cushing
11/10/2025, 5:58 PMsource(sourceSets.main.map { it.output.generatedSourcesDirs })
but to convert to java...
var sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
getByName doens't have any kind of way to map off that into a provider. assuming this is less efficient
javadoc.source(sourceSets.getByName("main").getOutput().getGeneratedSourcesDirs());
how should I convert to a provider here?Sammie W
11/10/2025, 7:44 PMMatthew Von-Maszewski
11/11/2025, 8:07 PMLauritz Ritter
11/11/2025, 10:56 PMAndroid gradle plugin: 8.6.0
Gradle: 8.10.2
FAILURE:
Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':expo-modules-core:compileReleaseKotlin'.
> Could not resolve all dependencies for configuration ':expo-modules-core:kotlin-extension'.
> Could not resolve all dependencies for configuration ':expo-modules-core:kotlin-extension'.
> Could not find org.jetbrains.kotlin:kotlin-compose-compiler-plugin-embeddable:1.9.25.
Searched in the following locations:
- <http://maven.production.caches.eas-build.internal/artifactory/libs-release/org/jetbrains/kotlin/kotlin-compose-compiler-plugin-embeddable/1.9.25/kotlin-compose-compiler-plugin-embeddable-1.9.25.pom>Colton Idle
11/13/2025, 6:22 AMallprojects {
allprojects {
tasks.withType(JavaCompile).tap {
configureEach {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
}
}
}
I want to just delete it because i dont know what it does. this is in the root build file in an android project. No one on the team seems to know why it was needed, but people dont want to remove it 😂 the allprojects within allprojects is just weird to me. I'm not sure if these are even valid lint flags (what linter? android-lint? or does java have a linter?)Niels Doucet
11/13/2025, 11:01 AMarchives configuration, but I can't seem to resolve that from a different module 🤔
--------------------------------------------------
Variant archives
--------------------------------------------------
Configuration for archive artifacts.
Capabilities
- com.acme:web-module:0.0.0 (default capability)
Artifacts
- build/libs/web-module-0.0.0.jar (artifactType = jar)
- build/libs/web-module-0.0.0.war (artifactType = war)
I tried
implementation(projects.webModule) { artifact { type = "war" } }
or
implementation(projects.webModule) { artifact { extension = "war" } }
but neither worked resulting in
Could not find web-module.war (project :web-module).
According to the documentation, the war plugin creates a new components.web component, but I'm not sure how to depend on/resolve that.Bernhard Posselt
11/13/2025, 12:22 PMMiha Markic
11/14/2025, 8:12 AMTheGoesen
11/14/2025, 9:14 AMMiha Markic
11/14/2025, 9:22 AMgradle.startParameter.taskRequests.toString()
?Fanish
11/14/2025, 9:35 AMAndrew Lethbridge
11/14/2025, 4:27 PMColton Idle
11/14/2025, 7:23 PMsubprojects {
configurations.configureEach {
resolutionStrategy ...
}
afterEvaluate { subproject ->
subproject.apply from: "$subproject.rootDir/jacocoTask.gradle"
}
}
I updated the after evaluate in kts to
afterEvaluate {
apply { from("$rootDir/jacocoTask.gradle") }
}
but now I get an error in my jacocoTask.gradle file on this line
task coverageReport(type: JacocoReport...
So my questions are:
1. Is my conversion correct?
2. I'm assuming the previous code was not correct since I now get an error in my jacoco Task.gradle file? I guess it wasn't being executed at all before? 😱
I'm new to this project so its been ad adventure trying to modernize some of these things 😅Ivan CLOVIS Canet
11/15/2025, 12:04 PMpluginManager.withPlugin , but I don't know the plugin ID.
• I want to supply a configuration option to be executed when the plugin is added
• If the plugin is already added, I want it to execute it immediately
However, this plugin doesn't have an ID.
It's https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plug[…]n/org/jetbrains/kotlin/gradle/targets/js/nodejs/NodeJsPlugin.kt (from KGP)