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

How to copy a folder from a dependent External Library's jar into the gradle...

I’ve a gradle project which has a dependency on an external library say “ext1.jar”. This external library has a folder “f1” which has some class files. When I build my gradle project I want to copy...

View Article


Gradle 6.2.1 released

See the full release notes https://docs.gradle.org/6.2.1/release-notes.html

View Article


How to delete a file inside zip file using Gradle?

I need to delete a file in zip file using Gradle. How to do this?

View Article

Resource filtering in gradle eclipse buildship

I may have to come back to your plugin. I seem only to have increased my chances of good luck but haven’t eliminated the failures altogether. This is crazy.

View Article

Chicken/egg issue with dependency configuration setup and "task configuration...

Perhaps you could turn the “expensive” task into two tasks where the expensive task has an up to date check. Task 1: Has the .git folder as a task input. Performs the expensive operation and writes...

View Article


How to successfully use composite projects (with Eclipse Buildship), if at all?

I have multiple Eclipse projects all under the same workspace belonging to the same topic. Some provide libs only, some frontends for the web browser etc., therefore some of the projects depend on...

View Article

Chicken/egg issue with dependency configuration setup and "task configuration...

I’ve tried similar things. The problem is that it is too late by then - other tasks not in my control have already been configured with incorrect versions by then. Even though I can (and did)...

View Article

Chicken/egg issue with dependency configuration setup and "task configuration...

You don’t have to use a string for the version. You can use a custom object where the toString() returns the version See the following link where the version logic changes based on tasks in the task...

View Article


War plugin: replace files inside src/main/webapp with other files with same...

Hi there, I’ve seen many answer to similar questions, but none address exactly my need, so I’m asking for advice. Here is the question: I need to create a war file for my app. I need to build two...

View Article


Configurations not working

configurations { compileInclude { extendsFrom compile extendsFrom include } } using the compileInclude directive in the dependencies block does not work, but using compile and include separately does.

View Article

Image may be NSFW.
Clik here to view.

Chicken/egg issue with dependency configuration setup and "task configuration...

Lance: You don’t have to use a string for the version. You can use a custom object where the toString() returns the version That worked! Accepted as a solution. However it also only exposed the ugly...

View Article

Resource filtering in gradle eclipse buildship

Having failed that, I wanted to try modifying Buildship itself… Failed, need help. Command-line build failed due to: * What went wrong: Execution failed for task ':assembleTargetPlatform'. >...

View Article

How to best model dependencies between modules under the same topic?

Please consider one topic to be e.g. a concrete application of some kind containing different modules for different purposes: Some model to manage some data, some layer to access a database, some view...

View Article


Chicken/egg issue with dependency configuration setup and "task configuration...

It’s probably the Jar.archiveFile which defaults to [archiveBaseName]-[archiveAppendix]-[archiveVersion]-[archiveClassifier].[archiveExtension] You can change this so it doesn’t reference the version

View Article

Distribution Plugin: File Permissions

I am using the Distribution Plugin implicitly via the Application Plugin. Suppose I have a script (or scripts) in my project located at: src/dist/scripts/custom_script.sh The scripts directory is...

View Article


Chicken/egg issue with dependency configuration setup and "task configuration...

Well, but, if I set that, I’d need the version in there (we want it). Unless you mean something like hacking to set an initial default to stop it from doing its own default… until we then have to set...

View Article

Copy file between two projects

I need to copy a file from on project to another. I tried with below, seems it is not working from “project1 path/filename” into “project2 path/file name” Also i tried Project.copy() , but not worked

View Article


Hi, im facing this error when i am trying to comit in development environment...

Hi, i changed http to https but unfortuntly my whole application get.its just showing me bad gateway what should i do now?

View Article

Share Gradle daemon between host and docker container

Not sure if this counts as “progress”, but here’s what I have done so far. Share the Gradle home directory between host and container (~/.gradle in my case) Turn Gradle daemon off using...

View Article

Use dependency version from platform outside the dependencies clause

HI, I’m using the gradle platform plugin; I have a BOM project that declares version constraints, and an App project that gets version recommendations from the BOM project. while this works great for...

View Article
Browsing all 19850 articles
Browse latest View live