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

Adding a library to .classpath file in Eclipse

We are using Buildship’s plugin in Eclipse. We are using a protobuf compiler as part of the build that generates .class files from .proto files. The build works fine from the command line (it adds the...

View Article


Image may be NSFW.
Clik here to view.

Compile and test with java 11 and jupiter

regrog: „…The error is still there“… Hey there @regrog? Any luck?

View Article


Spring boot gradle plugin - bootJar with main & test sources and classpath

Hi All, I am trying to build the bootJar with main source, test source, main runtime classpath and test runtime classpath using spring-boot-gradle-plugin:2.1.3.RELEASE. bootJar {...

View Article

Unit test fail when I run "gradle test" but run in Intellij successfully

I am facing the same issue. Tests via Intellij are passing, but failing via gradle command and even on Jenkins(which runs same gradle command, but clean build). By any change, did you get it resolved?...

View Article

Setup gradle in singularity image

Hi, i want to setup gradle within a singularity image and run then in a serve which don’t have external download access

View Article


Best practice for api vs implementation in multi-module project

What kind of leak are we talking about? If I use implementation in libraries, then in the host application I will be forced to write something like implementation library implementation wraps...

View Article

Image may be NSFW.
Clik here to view.

Our new plugin is not published yet

@tomd Maybe this is under the same situation with ‘Plugins not approved for two weeks’. Could you help me to publish plugin? Thanks in advance!

View Article

ProjectBuilder and Project#afterEvaluate hooks

The general guidance has been that ProjectBuilder is designed for lower level testing (on the pyramid) to verify direct manipulation of the project model. When you start using Project#afterEvaluate,...

View Article


Configuration inheritance and composition with kotlin dsl

I am trying to construct a configuration based on the implementation configuration. My goal is to ‘implement’ a number of dependencies which I want to include in an uberjar but suppress all of their...

View Article


Cpp library: build task compiles only debug variant

That is the default behavior. You need to use this task. You need to use assembleRelease https://docs.gradle.org/5.5.1/userguide/cpp_library_plugin.html#sec:cpp_library_tasks

View Article

CppLibrary privateHeaders.from used but include file not found

I am new to the CppLibrary (C++ Library) Plugin. I have added this to a subproject specific section of the top level (and only) build.gradle file. library { source.from file(‘codeSubset’)...

View Article

Plugin development abstract class and property

I think I see what was confusing to me. They are called “managed properties” but it appears to be the case that in order to have a single manged property then all of the properties of the class must...

View Article

Where to put something that can be retrieved from pluginManager and...

I have made a plugin which will be working in two “modes”: For the normal mode resolutionStrategy will be whatever is specified as the version i.e. if the version for a dependency is set to...

View Article


Where to put something that can be retrieved from pluginManager and...

I’m not entirely sure I understand. What I understand is: There’s a Groovy script which selects between (1) normal resolution and (2) some custom resolutionStrategy. This script is downloaded from...

View Article

Disable repo.maven.apache.org

As far as I know, Gradle doesn’t configure a Maven repository for use by default. It might be added by some plugin. To verify, you can create a clean Gradle project, add some dependency and see if it...

View Article


Compile and test with java 11 and jupiter

Yeah, sorry for the delay, too many things to do. Your plugin seems to work, I’m only not sure why are you changing default eclipse bin folder with build folder. I don’t know if it’s a good idea or...

View Article

Image may be NSFW.
Clik here to view.

Compile and test with java 11 and jupiter

regrog: „…Your plugin seems to work…“ Awesome @regrog! Sincere thanks for the feedback I’m relieved it didn’t break on you. Heh-heh. regrog: „…I’m only not sure why are you changing default eclipse...

View Article


Image may be NSFW.
Clik here to view.

Eclipse Buildship: Getting JUnit 5 running in Eclipse

Hey @DJViking. I presume you’ve already found an answer since you first asked your original question eight months ago. But while I was searching for something else, I happened to stumble across this...

View Article

How to get tasks are running in parallel in the same project? (nvm, found the...

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

View Article

How to release multiple AARs as artifacts in subproject

Hi, I try to build project where sub-project android library should release multiple aar’s (android archive files). In details: library code packed as AAR and also needed to include two dependent AARs...

View Article
Browsing all 19850 articles
Browse latest View live