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

Add a dependency via command line ala pip and npm?

what about just gradle add junit? It would install the latest release version as a compile dependency by default. Wow! Sensible defaults! If you want to get more granular: gradle add -v 4.12 -c...

View Article


Issue about running Gradle in Mac OSX Catalina

Hi, I’m using Gradle for Android project. When I tried to build project in Mac OSX Catalina from command line, the process of Gradle has reached to failure. How to fix this error? OS:...

View Article


Task: signJar FAILED when trying to gradle assemble

I am trying to use a tool (PharmCAT.org) that utilizes gradle but it seems that it turns up with the following error when “gradle assemble” or “./gradlew assemble” was used: Task :signJar FAILED...

View Article

Image may be NSFW.
Clik here to view.

Capture Exec output using Kotlin DSL

Lance: (please convert to kotlin) This is where I’m stuck I’ve been looking for examples without much luck.

View Article

Capture Exec output using Kotlin DSL

Tried the following. I’m able to see the output on the command line. Not sure how to redirect to the file though. tasks.register("gitLog") { val logFile = file("$buildDir/resources/main/commit.json")...

View Article


Capture Exec output using Kotlin DSL

Got it to work. Not sure if this is idiomatic. Feel free to correct me. tasks.register("gitLog") { val logFile = file("$buildDir/resources/main/commit.json") doLast { logFile.outputStream().use {...

View Article

Logging to console and file

Hi, afaik there is no inbuilt solution so far. We have moved our generators to an own javaexec - jvm, so we can configure our logging the way we like and performance of calling a seperate vm is ok as...

View Article

Upgrading build.gradle to the Gradle 7.0+ format

Hi @dandrei, I assume you are using the java plugin. Please use the java-library plugin instead. Then the api keyword/configuration is available for declaring dependencies. See also:...

View Article


Plugin is not in 'org.gradle' namespace

Any resolution for this issue? I am also getting similar issue on Mac

View Article


Image may be NSFW.
Clik here to view.

In gradle multi-project buil, how to build single jar and publish it to maven?

stackoverflow.com In gradle multi-project, how to build single jar and publish it to maven? java, spring-boot, maven, gradle asked by Cody on 01:44AM - 02 Jan 20 UTC I asked the same question on...

View Article

In gradle multi-project buil, how to build single jar and publish it to maven?

I have tried this: configurations { api.extendsFrom(internal) } dependencies { internal project(':server-public') implementation 'org.springframework:spring-web' } jar { from {...

View Article

Does composite build inspect the buildscript dependencies of included builds?

Hi guys, Anyone knows if the buildscript dependencies from an included build are supposed to be inspected and substituted in a composite build? For example, if I make a custom Gradle plugin project...

View Article

Composite Build and build hooks

it is because (I think) building your parent project does not really depends on the build task of your child project. For your parent project to be built, all it needs from your child project is the...

View Article


Can Plugins DSL work with a repo other than the gradle plugins portal

Yes, you can use pluginManagement {} in your settings script to declare more repositories, see https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_management

View Article

Upgrading build.gradle to the Gradle 7.0+ format

Thanks, that’s right! I was using: apply plugin: ‘java’ I changed it to: apply plugin: ‘java-library’ Now both api and implementation work perfectly in all cases, including: implementation...

View Article


Composite build works locally, but fails on Jenkins

Hi Pavel, as I wrote in a message above (on Sep 18) Jenkins uses a init script. A local gradle installation doesn’t contain a init script on default. The Jenkins init script does some things which...

View Article

더킹카지노∑】Stylebet79。CoM/theking/【더킹카지노【우리카지노】

더킹카지노∑】Stylebet79。CoM/theking/【더킹카지노【우리카지노】 더킹카지노∑】Stylebet79。CoM/theking/【더킹카지노【우리카지노】 더킹카지노∑】Stylebet79。CoM/theking/【더킹카지노【우리카지노】 더킹카지노∑】Stylebet79。CoM/theking/【더킹카지노【우리카지노】

View Article


Capture Exec output using Kotlin DSL

I get the feeling that you are writing to the same output directory as the “processResources” task. Each task should use a separate output directory so that up-to-date checks /task skipping can work...

View Article

Permission denied while executing batch

Anyone ? I still unsolved my problem

View Article

Ionic cordova run/emulate/build android doesnt work

The below error shows up everytime I run ionic cordova emulate android or ionic cordova run android. Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting)...

View Article
Browsing all 20440 articles
Browse latest View live


Latest Images