Difference `getting`/`existing`
Both methods have the same example given in their documentation: tasks { val jar by getting } tasks { val jar by existing } What’s the difference between those two? Why are both functions necessary?
View ArticleExamples in Gradle docs all missing?!
Hi @alexWasTaken - this is a bug in our documentation generation that we’ll get fixed up right away. If you take a look at the previous release, you’ll see the right output:...
View ArticleHow to execute task located in external plugin B , in my plugin A, after my...
class PublisherPlugin : Plugin<Project> { override fun apply(project: Project) { println("Publisher plugin initialized") project.tasks.register("greeting") { task -> task.doFirst { println("I...
View ArticleBuild slowdown after enabling file-system watching
I enabled file-system watching by adding org.gradle.unsafe.watch-fs=true in global gradle.properties. After that I see the following messages in console: Could not connect to kotlin daemon. Using...
View ArticleBuild slowdown after enabling file-system watching
Hi Svyatoslav, thank you for reporting! Is the error happening every time? Can you check out if there is anything in the Kotlin compiler daemon logs? They can be found in the $TMPDIR: find $TMPDIR...
View ArticleResume Failed Task (Publish)
Hi, I currently have the problem to be bound to a relatively unstable artifact repository manager. While I managed to work around the dependency resolving problem by just retrying downloads the...
View ArticleExecute Java method in Gradle task
Having following Java classes: public class Car { public void ride(){ System.out.println(“riding…”); } } public class Train { public void signal(){ System.out.println("signalling..."); } } I would...
View ArticleBuild slowdown after enabling file-system watching
I found quite a few Kotlin compiler logs. There seems to be a repetitive pattern. First daemon starts and shutdown after a few seconds. Meanwhile another another daemon starts, detects previous daemon...
View ArticleTask to trigger update of testRuntimeClasspath?
I have a strange situation with a multi-module, gradle-integrated project in Intellij. I want to use the Intellij test runner because it supports parameterized tests. Some of our tests depend on...
View ArticleBuild slowdown after enabling file-system watching
Thanks @mydogtom for reporting this. I created an issue here: https://github.com/gradle/gradle/issues/13382, let’s continue there!
View ArticleAdvanced composite build
After this problem came up again, I had a close look at the features introduced with newer gradle versions (like feature variants and capabilities) and with help of the gradle team I managed to get my...
View ArticleProblem with flutter in app/build.gradle
Hello please help me with this I’m desperate… Gradle error … Launching lib/main.dart on AOSP on IA Emulator in debug mode... Running Gradle task ‘assembleDebug’… FAILURE: Build failed with an...
View ArticleHow can i get the snapshot timestamp of an artifact from nexus , in my...
From your message, I think you’re saying the issue is just that you’re not downloading the most recent SNAPSHOT version that you expect. The title indicates a different ask. A SNAPSHOT version is...
View ArticleHow can i get the snapshot timestamp of an artifact from nexus , in my...
yes this is what i did and it resolved my problem , thank you
View ArticleExecution failed for task ':publishPlugins' for com.qmetry.QTMGradlePlugin...
Failed to post to server. Server responded with: You are not the owner of group com.qmetry on 26th may i have release 1.4 for same plugin, now i am facing this issue. for 1.5 version.
View ArticleExecute Java method in Gradle task
You can literally create the simplest tasks possible that do nothing other than instantiate the class and call the methods from a single file. Are there some other constraints to your question? task...
View ArticleGradle 6.5 Create Java Executable Jar with Deps
You mean a Uber Jar or Fat Jar? The moment one of your dependencies is signed you get into trouble, you can pack all dependencies in one ZIP archive and have a single (executable) JAR in the root of...
View ArticleHow can I find out what's artifact is downgrading a dependency?
Gradle v3.4.1 I have the following when I run a dependency tree +--- project :zift-core | .... | +--- com.hazelcast:hazelcast:4.0.1 -> 3.6.8 I even have this in my build.gradle file dependencies {...
View Article