Questions tagged [gradle-custom-plugin]

A Gradle plugin packages up reusable pieces of build logic, which can be used across many different projects and builds. Gradle allows you to implement your own custom plugins, so you can reuse your build logic, and share it with others.

A Gradle plugin packages up reusable pieces of build logic, which can be used across many different projects and builds. Gradle allows you to implement your own custom plugins, so you can reuse your build logic, and share it with others.

More Details

21 questions
0
votes
0 answers

Unable to generate files using raml to jaxrs gradle plugin

I am trying to use raml-to-jaxrs-gradle-plugin:3.0.6 following the below examples https://github.com/mulesoft-labs/raml-for-jax-rs/blob/master/raml-to-jaxrs/raml-to-jaxrs-gradle-plugin/README.md Exception i am getting is : A problem was found with…
0
votes
1 answer

Gradle - Unable to load class LibraryExtension

I am trying to create a custom gradle plugin to make use of the gradle conventions for a multi-module project. I have the buildSrc module where in the settings.gradle file I apply the "de.fayard.refreshVersions" plugin for managing the dependencies…
0
votes
2 answers

Android gradle custom Plugin error after updating android gradle plugin to 7.0

Following is my code for custom plugin import com.android.annotations.NonNull; import com.android.build.gradle.LibraryExtension; import org.gradle.api.Plugin; import org.gradle.api.Project; import org.gradle.api.artifacts.Configuration; public…
0
votes
1 answer

Can a standalone gradle plugin export a custom task type?

I have a standalone Gradle plugin that includes a custom task type: gradle-conventions/build.gradle plugins { id 'groovy-gradle-plugin' id 'maven-publish' } group = 'com.example' version = '1.0' publishing { repositories { maven { …
hertzsprung
  • 9,445
  • 4
  • 42
  • 77
0
votes
1 answer

Gradle custom plugin which needs to access sources

I wrote a gradle plugin where I do expect to access sources of the project and generate some files. Everything works when I run my project from Java, however when I try to do the same via plugin it does not work. It does not see the sources of the…
Mariusz.v7
  • 2,322
  • 2
  • 16
  • 24
0
votes
1 answer

How to test custom gradle task against test project directory

I have custom gradle plugin with such task: @TaskAction def buildSemanticVersion() { int major = project.semanticVersion.major int minor = project.semanticVersion.minor int patch = "git rev-list HEAD --count".execute().text.toInteger() …
moleksyuk
  • 413
  • 5
  • 10
1
2