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

Gradle 6 Using Built-in javadoc and sources packaging and publishing

Moving to Gradle 6 I wanted to use the new methods for adding sources and javadoc. This: java { withJavadocJar() withSourcesJar() } Instead of this: task sourcesJar(type: Jar, dependsOn: classes) {...

View Article


Gradle Enterprise Maven Extension 1.3.3 has been released

The Gradle Enterprise Maven Extension v1.3.3 has been released. See release notes for the changelog. Compatible with scans.gradle.com and Gradle Enterprise 2019.4 or later.

View Article


Gradle Plugin Task Reflection Scans Plugin's Project Class Files Instead of...

I’ve created a Gradle plugin which scans the class files in my project and find which ones have an annotation. I got it to work and compiled it. Now when I run the task in my project, instead of...

View Article

Image may be NSFW.
Clik here to view.

Gradle 6 Using Built-in javadoc and sources packaging and publishing

Hi @DJViking, DJViking: I managed to get it working by removing artifact sourcesJar and artifact javadocJar from the publications. These was uploaded to the repository even if not specified within...

View Article

JUnit5 in multi-module project

Hello, I’m trying to figure out on how to avoid duplication with JUnit5. We have several modules in our project, each has it’s own build.gradle. Putting the following code: test { useJUnitPlatform() }...

View Article


Image may be NSFW.
Clik here to view.

Gradle 6 Using Built-in javadoc and sources packaging and publishing

jendrik: This is the right solution. Are there any issues with it? Found no issues with it.

View Article

Gradle Plugin Task Reflection Scans Plugin's Project Class Files Instead of...

Gradle tasks are loaded via Gradle’s buildscript classloader. Classes compiled during the build of your project are not loaded by the buildscript classloader. Instead of ClassLoader loader =...

View Article

Open Swing App from Task

Hi, I would like to open Swing App to collect, some of information from User, before executing that task. I tried different ways , but failed. In all my trails, the Swing will open, but task will...

View Article


Gradle buildship problem org.eclipse.core.runtime.CoreException

Hi I am using java 11 and eclipse 4.13 and 3.x gradle buildship . while running my application i am getting below exception in console. org.eclipse.core.runtime.CoreException:...

View Article


How to attach gradle source code to build.gradle file in eclipse

Unfortunately, Buildship doesn’t provide editing support for script files beyond basic syntax highlighting.

View Article

org.eclipse.buildship.core.internal.GradlePluginsRuntimeException: Can't read...

Answered at https://bugs.eclipse.org/bugs/show_bug.cgi?id=558286

View Article

Find the build dir for a given Eclipse IProject

Hi! First of all, why do you need to support Buildship 2.x versions? Do you need to support really old Gradle versions? Would it be possible to move those projects to newer Gradle versions (there are...

View Article

Find the build dir for a given Eclipse IProject

Thank you for the detailled answer. We’ll revisit the usecase for 2.x and can thereby hopefully avoid reflection. Best Sebastian

View Article


Gradle buildship problem org.eclipse.core.runtime.CoreException

Answered at https://bugs.eclipse.org/bugs/show_bug.cgi?id=558286

View Article

Gradle Plugin Task Reflection Scans Plugin's Project Class Files Instead of...

Thanks for the quick response! I’m not sure how to implement this n Java…

View Article


Image may be NSFW.
Clik here to view.

Eclipse downloadTest

I’m guessing you need this to be able to jump to sources from the editor. That should work out of the box. I did a quick check with the dependency you linked above and it works even without...

View Article

More versions from project

The latest Buildship/Gradle version has support to import projects with overlapping names.

View Article


Image may be NSFW.
Clik here to view.

Eclipse downloadTest

Thank you your reply! What you are indicating is correct for the files coming from the sources jars. I am trying to find a way to make the test jars available in the same way(mechanism). Right now, my...

View Article

ClassNotFoundException in custom groovy task

I’m pretty new to gradle/groovy so please bare with me. I’ve written a custom task which extends org.gradle.api.DefaultTask for gradle 6.0.1. One of the things I’m trying to do in this task is update...

View Article

Image may be NSFW.
Clik here to view.

Can't Login? Let us know!

We’ve recently made a minor change to the Gradle Forums login process. If you find that this change has made it so you are unable to login, please reach out to us at plugin-portal-support@gradle.com...

View Article
Browsing all 19854 articles
Browse latest View live