configure the gradle plugins configurations as a single custom gradle plugin - gradle

I am learning gradle. I am not able to understand the gradle docs since i am a beginner. can anyone guide me on how to replace the configurations of different gradle plugins in build.gradle files as single custom gradle plugin using extensions to configure

Related

can you build a maven project inside of a gradle wrapper

It may be just that I have a general misunderstanding how gradle build works, but it feels to me that I can not build a maven file inside of a gradle build. Since gradle uses the gradle.build file, and maven uses a pom.xml, it does not seem as though I can do this. I have multiple maven projects that I would like to wrap up with a gradle wrapper. I can not find ANYTHING on whether this is even possible.
Both Maven and Gradle are build tools and you should only use one of them for a given project.
If you have existing Maven projects and like the functionality provided by the Gradle wrapper, there is a similar wrapper for Maven (note that this is currently a third-party plugin but they plan to include it in the upcoming release 3.7 of Maven).
Alternatively you could convert your projects entirely to Gradle.

Alternatives to the Gradle Gretty Plugin

I’m trying to upgrade some old code that used the Jetty plugin in Gradle. I would like to upgrade the Gradle version beyond Gradle v3.5, but Gradle v4.0 and above has the Jetty plugin removed. Unfortunately, we are now required to use Gretty.
I’m using IntelliJ. My problems with the newer Gretty plugin are:
JVM Args and System properties specified on the commandline have to be manually put into the Gretty configuration.
At least in IntelliJ, I could do out of the box debugging with the Jetty plugin, but need to run two executions including the app and the Remote, and use a different Gradle task for debugging (e.g. jettyRunDebug) with Gretty.
What are the alternatives to Gretty? Anything that can substitute for the old Jetty plugin.
How about just skipping the Gretty plugin entirely and just using Unit testing?
See: https://stackoverflow.com/a/29759263/775715

Gradle custom plugin as a standalone project

I have custom gradle plugin as a standalone project. I would like to use it in other project.
Suppose that plugin is not yet build. Is there any way how can I compile my plugin (in my other project) and add it on classpath to buildScript block all in one build.gradle of my other project ?
I am new to gradle so sorry if this is dumb question.

Maven/Gradle support in IntelliJ Plugin

I'm writing a plugin using IntelliJ SDK via the gradle-intellij-plugin.
I was able to add the dependencies so far, but now that I'm trying to add Maven/Gradle dependencies they are not seen.
I also added the jars of the IntelliJ plugins into the SDK classpath
Any idea of the reason? How can I introduce support for these Maven/Gradle thingy?
The approach that you are shown is for those that are not using the gradle plugin to build new plugins.
According to the plugin README and to the IDE structure, these two are bundled plugins and must be imported using the folder name inside the plugins folder in the IntelliJ installation.
Just add
intellij {
version = 'IntelliJVersion'
pluginName = 'MyPluginName'
plugins 'Maven', 'gradle'
}
in the build.gradle.
Pay attention to the case.

How to use golang build commands in gradle

I am trying to write buildscript in gradle for a simple golang web application.
Can someone please tell me how to use golang commands for build and install in gradle build?
I do not see any clear documentation for the usage of gradle for a go lang application.
Try Gogradle https://github.com/blindpirate/gogradle, a full-featured Golang build plugin.
What you need to do is creating a build.gradle as documented, and run ./gradlew build or ./gradlew test.
gradle supports maven plugins and you can just call the mvn-golang maven plugin as usual maven plugin published in the maven central

Resources