Explicit property to enable Gradle scan
If the build scan plugin is applied, the build data is always captured on the machine where the build is run, but not necessarily published to scans.gradle.com depending on the publishing settings....
View ArticleNo Debug information with remote debugger
Trying to attach a debugger client to my Kotlin project built by gradle with debug information such as source code. Within project root I execute: ./gradlew test --debug-jvm. After jdb -attach $PORT,...
View ArticleTry: Run with --stacktrace option to get the stack trace
Hi, please help me for the following problem with IntelliJ 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...
View ArticleChain task execution on subprojects
Hello guys, I have a multi-module Gradle project with multiple samples grouped by categories as follows: ./ gradlew projects Root project 'my-project' +--- Project ':demos' \--- Project ':samples'...
View ArticleGradle Plugin Task Reflection Scans Plugin's Project Class Files Instead of...
Same problem here. I was able to replicate the same config in android with kotlin using android variants but not sure how to get the runtimeClassPath. You can actually reuse the same approach as...
View ArticleTarget both Java 8 and Java 9 in a single project
I currently have this project: https://github.com/Proximyst/fieldmod It uses an older version of Gradle which supports depending on a subproject (implementation) which targets Java 9 while the root...
View ArticleTarget both Java 8 and Java 9 in a single project
This is a consequence of a change introduced in Gradle 5.3. You can read and learn about the way to disable it in this entry of the version upgrade guide.
View ArticleExplicit property to enable Gradle scan
This makes things clear. Thank you @etiennestuder!
View ArticleCVE issues with Gradle 6.3
Please find below link for the CVE report: drive.google.com dependency-check-report_6.3.html Google Drive file.
View ArticleDokka 0.10 Kotlin Javadoc Workaround
Sorry, I still am not sure about what you expect the outcome to be. Do you want the <project>-<version>-javadoc.jar to contain the Dokka HTML files when running with Java < 10? Or...
View ArticleTransitive dependencies not working
Hi, i am writing a gradle plugin and transitive dependencies are not working there. This is how i create the configuration and set transitive to true: ConfigurationContainer configurations =...
View ArticleA failure occurred while executing...
Hi I don’t know if anyone else is having the same problem as me? I’m relatively new to android studio and didn’t have a problem before installing the new updates. If anyone could give me a solution to...
View ArticleUnique snapshot dependencies for project's own subproject in POM not declared
Suppose you have a library project named ‘foo’, which consists of two subprojects foo-core and foo-extensions, where foo-extensions declares a dependency on foo-core. Now foo’s version is set to...
View ArticleHow to create an exploded war with Kotlin DSL?
You can do something like this in kotlin for what you have listed: // Exploded war files val explodedWar by tasks.register<Copy>("explodedWar") { into("$buildDir/libs/exploded")...
View ArticleBuild only subprojects in a dynamic multi-module project
For the record: to exclude compileJava task from rootProject I use the -x :compileJava Example: ./gradlew compileJava -x :compileJava > Task :sampleA:compileJava UP-TO-DATE > Task...
View ArticleChain task execution on subprojects
For the record: so far I came up with the following script # build.gradle.kts subprojects { ... afterEvaluate { childProjects.forEach { tasks.forEach { task ->...
View ArticleGradle 6.4-rc-1 is now available for testing
Gradle 6.4 RC1 is available for testing; see the release notes for more information.
View Article