Best practice for api vs implementation in multi-module project
Not exactly - in Gradle, you need to list as implementation only what you compile against. I.e. in the case of log4j you only list “log4j-api”. Taking it further, if the library listed in...
View ArticleWhere to put something that can be retrieved from pluginManager and...
Hehe maybe it was too confusing and to internal so I’ll explain in a more simple terms but equivalent use case. Supposedly I have created a plugin, which sets up some defaults like: what java version...
View ArticleBest practice for api vs implementation in multi-module project
Here is my case: https://stackoverflow.com/q/58318259/345810 And I have to list all the dependencies, or use the “api” keyword. I think this is a very common case. Since no one designs the API in...
View ArticleWhere to put something that can be retrieved from pluginManager and...
I just found out that gradle will first resolve all plugins and then apply them afterwards so that was not part of my expectation, however it seems reasonable. So the concept will work for...
View ArticleBest practice for api vs implementation in multi-module project
If you want to hide it, then declare it as implementation and it will work BUT you cannot have methods taking arguments or returning results with types that are contained in or derived from the...
View ArticleChange group of my plugins
Any update on this (more that week already approved plugin is under approval)?
View ArticleGradle command error
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
View ArticleWhy do WARs have no dependencies with maven-publish
So if I understand this correctly the ear plugin needs the dependencies, because it re-packages things. That is, the dependencies are stripped from the wars and instead the original dependencies...
View ArticleError Running Gradle & Cannot resolve symbol 'GradleException'
Error running Gradle: ProcessException: Process exited abnormally: FAILURE: Build failed with an exception. Where: Build file...
View ArticleBuild Scan activation email not sent
Hi, after using the command line option --scan I’ll see a build scan activation url. After entering my email address, I never receive an email. Has anyone else encountered this issue? Here’s an...
View ArticleVS Code extension released
Hi there. I’ve been getting into a little bit of Java dev recently and have mostly been happy using VS Code to do so. I noticed there was no easy way to discover and run gradle tasks from the editor....
View ArticleCompile and test with java 11 and jupiter
regrog: „…isn’t that going into conflict?…“ Here are some other things, @regrog, that convince me there is no risk of conflict: Eclipse provides the ability to change the „default“ source and output...
View ArticleNew plugin : nifi-gradle-plugin
I am working on a new plugin for Nifi archive files. Presently the only plugin in available in Maven. I am learning how to write gradle plugins. This plugin makes use of a “managed property” task. The...
View ArticleMy plugins for C++ (integration with Eclipse/QtCreator/NetBeans/KDevelop)
In connection with changing project’s hosting the plugins were moved in another group: plugins { id 'loggersoft.cpp-build-tuner' version '1.1' id 'loggersoft.cpp-ide-generator' version '0.5' } Project...
View ArticleSupport of LLVM
In connection with changing project’s hosting the plugins were moved in another group: plugins { id 'loggersoft.cpp-llvm' version '0.5' } Project URL: https://gradle-cpp.sourceforge.io Documentation:...
View ArticleWhy do WARs have no dependencies with maven-publish
Hello jendrik, thank you for the interesting insights. I’ll try to transform your suggestion into our companies war plugin wrapper (we provide prepared plugins that do a lot of default configurations...
View ArticleUse sourceControl to have github dependency
I would like to use this repository as a dependency in my gradle project, but for some reason I get this exception: FAILURE: Build failed with an exception. 12:54:05.289 [ERROR]...
View ArticleGradle Enterprise 2019.3.5 has been released
Gradle Enterprise 2019.3.5 is now available. Please see the release notes for more information.
View ArticleCompile and test with java 11 and jupiter
You gave me a good hint for another topic about build folders in eclipse and gradle. Thanks! Are you using the eclipse ‘build automatically’ property?
View Article