Best-practice Gradle setup for Maven&Gradle plugin?
Seeing that nobody answers: Can I improve the question to make it easier to answer?
View ArticleException in thread "main" java.util.NoSuchElementException
I though it would make the System.in available to any JavaExec task specified in the build.gradle when build.gradle is executed. I guess not though. Accually you can . I’m using gradle 6.5.1 and I...
View ArticleResolution for The configuration :projectname:classpathCopy was resolved...
I am authoring a multiproject build for gradle for the first time. I have written build files for all subprojects and everything is working fine. But when I enable org.gradle.parallel=true in...
View Articlegradle filter custom token in jar dependency
We have a problem with a gradle dependency where we cannot inject programmaticaly the good value for a java property, we cannot modify this dependency( update the code) how could I open this...
View ArticleError building task (windows only)
HI, When using linux => no problem when using windows => I have an error execCommand() == null task buildLibraries(type: Exec) { workingDir './libs' if...
View ArticleDownload previously published jar from private maven repository
Hi all I have to download a previously published jar file from a private maven repository and upload/publish it to another private maven repository. I tried the following: repositories { maven { url =...
View ArticleNeed to capture activity of the UploadArchive task
I have a scenario where I need to capture below details in the init.gradle file. Can we get all the activity of task ? the Inputs params for UploadArchive and publish task, which repo is the artifact...
View ArticleHow to enforce to use semantic versioning for all gradle projects at the...
We want to ensure that all Gradle projects should start doing semantic versioning, will be a standard while doing releases, How can it be enforced at the central level maybe in the init.gradle defined...
View ArticleError building task (windows only)
Try commandLine 'cmd /c build_jar.bat -o install'.split(' ')
View ArticleHow to remove .gitignore from defaultExcludes for whole multi module project
Hi Uday, I just merged a fix which allows to configure default excludes in settings.gradle and those will take effect on the first build already: https://github.com/gradle/gradle/pull/13694 The fix...
View ArticleHow to enforce to use semantic versioning for all gradle projects at the...
An init script acts upon a Gradle instance whereas a build script acts upon a Project instance. So, if you want to put logic in an init script you can use an appropriate event handler. Eg: init.gradle...
View ArticleProcess 'command '/path/to/jdk-11.0.6+10/bin/java'' finished with non-zero...
Sorry, yes, the compiler will still put the compiled class file into the correct directory. When you execute the classes task, do you not end up with a...
View ArticleParent pom is available in the Different repo
To me that error says that Gradle might be trying to parse corrupt xml/pom files. Try building with a fresh Gradle cache mv ~/.gradle ~/.gradle.old. If you still get the same error, I would double...
View ArticleProject layout advice for making both a Gradle and a Maven plugin?
Hi all, I want to build a plugin that will exist in two forms, my-gradle-plugin and my-maven-plugin. In Maven, I’d have to create separate subprojects for each artifact I want to deploy in the end;...
View ArticleJava-gradle-plugin gradleApi() api dependency problem
By the document: https://docs.gradle.org/current/userguide/java_gradle_plugin.html the plugin java-gradle-plugin adds the gradleApi() dependency to the api configuration. I developed a Gradle plugin...
View ArticlePublishing dynamic task outputs
Hi, I’m trying to publish an artifact generated by a custom task that produces an RPM file, please see the code below. The artifact should get its file based on a matching file under a directory where...
View ArticleHow to send "-X" option to javadoc?
Is there a way to specify multiple options with the same name? I’m trying to pass multiple -tag arguments to javadoc, but Gradle is throwing away all of them except the last one. I really wish the...
View ArticleParent pom is available in the Different repo
@Chris_Dore - Thank you so much for your prompt response. My old version of build engine is ANT, same dependency is working fine in ANT as a maven dependency. But, its not working only with Gradle. Is...
View ArticleParent pom is available in the Different repo
Can you share your current gradle config? Content is not allowed in prolog This message means that a process is trying to parse a file as xml, but the file is not valid xml
View ArticleJar present in cache but not resolved in project
Hy Mr. Mark, please I am new to android studio and I just created my first project but whenever I try to sync with gradle it takes alot of time and then later show error message "can’t download...
View Article