Jerome Haltom
07/25/2025, 5:14 PMCaleb Cushing
07/29/2025, 1:14 AMAndrzej Zabost
07/30/2025, 12:16 PMbuildscript
block is used or not (or, at least, that seems to be the difference).
I'm sharing the post from #CJYS1DAP5 for visibility because I assume the problem may be more generic and not necessarily Android related.
https://gradle-community.slack.com/archives/CJYS1DAP5/p1753877427121339Jacob Tindi
07/30/2025, 2:31 PMJacob Tindi
07/30/2025, 2:33 PMColton Idle
07/30/2025, 5:56 PMAndrew Grosner
07/31/2025, 2:46 PMEli Graber
07/31/2025, 7:01 PMplugins {
id("io.gitlab.arturbosch.detekt")
}
After updating to 9.0.0, building the library fails with
Plugin [id: 'io.gitlab.arturbosch.detekt'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (plugin dependency must include a version number for this source)
Anyone know if this new failure is intentional or a regression?Colton Idle
08/01/2025, 2:19 AMSebastian Schuberth
08/01/2025, 6:56 AMSebastian Schuberth
08/01/2025, 7:26 AMNiels Doucet
08/01/2025, 7:56 AMExecution failed for task ':sonar'.
> Resolution of the configuration ':project-submodule:testCompileClasspath' was attempted without an exclusive lock. This is unsafe and not allowed.
Details in 🧵Andrew Grosner
08/01/2025, 2:56 PMJohn Svensson
08/01/2025, 3:04 PMLibrariesForLibs
. Will post in thread to not clutter the main channel.Q-MEDİKAL LAB
08/02/2025, 6:16 AMQ-MEDİKAL LAB
08/02/2025, 6:16 AMCould not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.> Namespace not specified. Specify a namespace in the module's build file: C:\Users\traco\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_secure_storage-7.0.1\android\build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace. If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant. * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Anmol
08/05/2025, 8:17 AMA failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction> Compilation error. See log for more details * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Vladimir Sitnikov
08/05/2025, 8:30 AMjava.lang.NoClassDefFoundError: org/gradle/util/VersionNumber
Well, Gradle had VersionNumber
class for quite some time, and it is sad Gradle 9 broke backward compatibility with plugins which still use VersionNumber
from org.gradle.util
I wonder what are the benefits for Gradle to drop the class. My guess is it does not require much efforts to support.
It would be so much better if Gradle used something like @Deprecated(level=Hidden)
instead of dropping the class.Pratikshit singh
08/05/2025, 10:11 AMblubb
08/05/2025, 2:02 PMXeno
08/05/2025, 3:54 PMbeforeSettings
phase and for regular dependencies in the projectsLoaded
phase. However, I have been struggling for a while to determine in which hook I should add transitive dependencies for plugins. For example, the plugin (com.gradleup.shadow
) has the following dependencies:
- org.vafer:jdependency
- org.apache.logging.log4j:log4j-core
- org.codehaus.plexus:plexus-xml
- org.codehaus.plexus:plexus-utils
- commons-io:commons-io
- org.jdom:jdom2
- org.apache.ant:ant
All of these dependencies are present in my system, including their artifacts and POM files. Currently, my plugin is unable to resolve transitive dependencies for plugins because I am unsure about the correct hook to use for adding them to the configuration and the precise method to do so. As a result, the build process fails with an error.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shadowJar'.
org/vafer/jdependency/Clazzpath* Try:
Run with --stacktrace option to get the stack trace.
Run with --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.BUILD FAILED in 1s 5 actionable tasks: 1 executed, 4 up-to-date and if I add this to build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.apache.ant:ant:1.10.14")
classpath("org.ow2.asm:asm-commons:9.8")
classpath("org.ow2.asm:asm:9.8")
classpath("commons-io:commons-io:2.18.0")
classpath("org.vafer:jdependency:2.13")
}
}
then I get
BUILD SUCCESSFUL in 1s
6 actionable tasks: 6 up-to-date
Moreover, both attempts were made in an environment without Internet access and with a cleared cache.
Please tell me how to correctly add such dependencies to the configuration using the API so that they fall into the plugin classpath, I will be very grateful
Leroy Anon
08/05/2025, 4:15 PMArthur McGibbon
08/05/2025, 4:22 PMsrc/main/dist/bin
lose their exec attribute when being copied into the archive by the distribution plugin. That's a bug isn't it?Adam
08/06/2025, 2:09 PMtaskB
depends on taskA
, but taskB
is disabled. When I run gradle taskB
, why does Gradle still run taskA
? Shouldn't it also be skipped?
val taskA by tasks.registering {
doLast {
println("running $path")
}
}
val taskB by tasks.registering {
enabled = false
onlyIf { false }
dependsOn(taskA)
doLast {
println("running $path")
}
}
./gradlew taskB
> Task :taskA
running :taskA
> Task :taskB SKIPPED
BUILD SUCCESSFUL in 175ms
Philipp Nowak
08/08/2025, 7:14 AMfalse
and the other one to true
to see the impact. Is that possible? I thought about using system-properties
but it doesn't seem to be the right one here since it translates to the -D
arg instead of -P
Lucas Holden
08/09/2025, 6:17 AMdependencies {
myCfg(project(":common"))
}
configurations {
myCfg {
canBeResolved = true
canBeConsumed = false
attributes {
attribute(MyAttributes.PLATFORM, "thisPlatform")
attribute(MyAttributes.SOURCETYPE, "main")
}
}
// both of these somehow use :common's default export, which is a different jar to the one myCfg consumes
compileClasspath.extendsFrom(myCfg)
runtimeClasspath.extendsFrom(myCfg)
}
Mohamed Abderraouf ZOUAID
08/09/2025, 5:49 PMPicked up JAVA_TOOL_OPTIONS: -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Cannot query the value of this provider because it has no value available.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
BUILD FAILED in 1m 25s
Running Gradle task 'assembleDebug'... 88.4s
Error: Gradle task assembleDebug failed with exit code 1
anyone can help me please?edward ambroce
08/09/2025, 6:42 PMMartin
08/09/2025, 9:28 PMConsider enabling configuration cache to speed up this build
Lucas Holden
08/10/2025, 7:16 PM