Quantcast
Channel: Gradle Forums - Latest posts
Browsing all 19888 articles
Browse latest View live

Make a complete copy of Test task

You could probably do TestFrameworkOptions options = testTask.getOptions(); if (options instanceof TestNGOptions) { testTaskcopy.useTestNG(); } else if (options instanceof JUnitOptions) {...

View Article


Could not run phased build action using Gradle distribution ~ A problem...

IntelliJ this works just fine. Can you import your project to IntelliJ or can you even run tasks from it? Judging from the stack trace this problem is not ide-related. I wonder if your build work in...

View Article


Gradle and Buidship not working for Vaadin project

Buildship assigns a separate classpath to the project because the Java tooling in Eclipse breaks when the class file disappears (the clean task is executed). You can assign the build/classes/java/main...

View Article

How to disable auto refresh in gradle tasks view

Currently, the only way to achieve this is to have the Gradle tasks view closed/not visible when your Eclipse instance is starting up. It’s a missing feature to cache the tasks when shutting down the...

View Article

Can't find module when running JUnit

Hi! Buildship does not have any special support for jpms. Some support can be achieved with classpath customization, but that’s all. We simply haven’t seen many reports in the area and so we did not...

View Article


Make a complete copy of Test task

Thanks for the idea Lance. That will definitely work. Any thoughts on whether enabling all of the frameworks is “bad” in some way?

View Article

Consume Gradle artifacts in Maven build

I am contributing to a project built using Maven. Part of this project is a Gradle plugin. Importing this monstrosity into IDE (IJ) does not work well for the Gradle plugin module because the pom does...

View Article

Make a complete copy of Test task

I’d say not possible rather than bad

View Article


Make a complete copy of Test task

Interestingly, it works in my trials. I cannot explain why looking through the code. I agree with you it seems like it should not. It seems there should only be able to be one at a time. Though...

View Article


Make a complete copy of Test task

It’s possibly last one wins, so if you set all three, the first two don’t have any effect I think TestNG is an extension of junit and supports junit tests. So by using testNG you can have a mix of both

View Article

Make a complete copy of Test task

I would tend to agree looking at the code. What is odd though is that the one I need in this particular scenario is done first. I need JUnit 5 (platform) and do: copy.useJUnitPlatform();...

View Article

Best way of performing multiple shared Actions from Tasks?

Hi, I’m currently migrating a bunch of ant build scripts to Gradle, and there’s one particular construct that I find hard to express in a reasonably succinct way. We’re generating Java code using...

View Article

Accessing the files under resources from another subproject

Hello, so I have a couple of files under parentProject/projectA/src/main/resources that I would like to access while running tests in parentProject/projectB. The best I could come up with is this:...

View Article


Issues instantiating JsonSlurper within plugin task action

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

View Article

Accessing the files under resources from another subproject

Sorry, looks like this a bug with IntelliJ, my mistake.

View Article


Unresolved reference when "include" with kotlin

It’s seems that the dependency is lost when compiling. How can I fix it? Github settings.gradle rootProject.name = "sponge-template" include "laven-sponge", "laven-sponge:laven" build.gradle def laven...

View Article

Gradle and Buidship not working for Vaadin project

Thanks a lot !!! Your suggestions solved my problem. I have added this little code here to my gradle build file and now the Vaadin application works as expected: eclipse { classpath { file {...

View Article


Buildship interfering with simple run/debug launch

It shouldn’t happen. The GradleClasspathContainerRuntimeClasspathEntryResolver class is tied to the Eclipse classpath container. Just make sure that your .classpath file doe not contain the following...

View Article

SourceSet with name 'main' not found

I finally found a solution! I was doing a few things wrong, first, both dokkaJar and sourceJar tasks have to be in the main build.gradle and not inside deploy-bintray.gradle.kts. Moving them made it...

View Article

Gradle distribution distZip task zipped exe file is not working after extraction

Actually, I used filter() method to replace the place holders in script file. This gradle filter() method has corrupted the exe file after running the gradle build. filter(ReplaceTokens, tokens:...

View Article
Browsing all 19888 articles
Browse latest View live