# \#plugins

**URL:** https://discuss.gradle.org/tag/plugins/117.md?match_all_tags=true&page=1&tags%5B%5D=plugins

[Latest](https://discuss.gradle.org/latest.md) · [Categories](https://discuss.gradle.org/categories.md) · [Tags](https://discuss.gradle.org/tags.md)

**Page:** 2

---

## [Revert expand configuration](https://discuss.gradle.org/t/revert-expand-configuration/45066)

<div class="topic-metadata">

**Author:** [@rivancic](https://discuss.gradle.org/u/rivancic)\
**Replies:** 2\
**Last updated:** [March 3, 2023, 9:37pm UTC](https://discuss.gradle.org/t/revert-expand-configuration/45066 "2023-03-03T21:37:19Z")

</div>

I am applying a plugin to the java project. Basically the plugin has following configuration. processResources { // Do not process banner.txt filesMatching('\*.yml') { expand(project.properties) } …

---

## [How to reuse repository in PluginManagementSpec for dependency repository](https://discuss.gradle.org/t/how-to-reuse-repository-in-pluginmanagementspec-for-dependency-repository/28554)

<div class="topic-metadata">

**Author:** [@Matthew\_Rusinak](https://discuss.gradle.org/u/Matthew_Rusinak)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 1:08pm UTC](https://discuss.gradle.org/t/how-to-reuse-repository-in-pluginmanagementspec-for-dependency-repository/28554 "2023-02-24T13:08:00Z")

</div>

Hello, I’m trying to write a plugin that standardizes a bit of configuration across multiple projects where I work. Due to this every project needs to declare our internal artifact server in settings.gradle in the plugi…

---

## [Gradle Plugins Offline Resolution](https://discuss.gradle.org/t/gradle-plugins-offline-resolution/28161)

<div class="topic-metadata">

**Author:** [@ZRich97](https://discuss.gradle.org/u/ZRich97)\
**Replies:** 3\
**Last updated:** [August 16, 2018, 5:39am UTC](https://discuss.gradle.org/t/gradle-plugins-offline-resolution/28161 "2018-08-16T05:39:53Z")

</div>

Hello, I am attempting to design a Gradle project with the following requirements: No internet access. No pre-existing Gradle cache A portable Maven repository containing all necessary plugins and dependencies. I have…

---

## [Incremental-friendly aspectj bytecode weaving](https://discuss.gradle.org/t/incremental-friendly-aspectj-bytecode-weaving/22274)

<div class="topic-metadata">

**Author:** [@Sam1](https://discuss.gradle.org/u/Sam1)\
**Replies:** 4\
**Last updated:** [February 8, 2023, 12:14am UTC](https://discuss.gradle.org/t/incremental-friendly-aspectj-bytecode-weaving/22274 "2023-02-08T00:14:00Z")

</div>

I've found this aspectj plugin not to work very well and have been looking to replace it. The idea I've been pursuing is to stick a weave task between the compile and classes tasks of the java plugin. The weave task in…

---

## [Access plugin's task extension in configuration phase](https://discuss.gradle.org/t/access-plugins-task-extension-in-configuration-phase/44758)

<div class="topic-metadata">

**Author:** [@C-Otto](https://discuss.gradle.org/u/C-Otto)\
**Replies:** 2\
**Last updated:** [January 29, 2023, 11:53pm UTC](https://discuss.gradle.org/t/access-plugins-task-extension-in-configuration-phase/44758 "2023-01-29T23:53:43Z")

</div>

I’m writing a convention plugin in Java which is only supposed to do two things: apply some other plugin add some configuration for said plugin This works fine for plugins that can be configured via some project “Exte…

---

## [Programmatically apply a plugin](https://discuss.gradle.org/t/programmatically-apply-a-plugin/34469)

<div class="topic-metadata">

**Author:** [@Andres\_Almiray](https://discuss.gradle.org/u/Andres_Almiray)\
**Replies:** 7\
**Last updated:** [January 13, 2023, 2:43pm UTC](https://discuss.gradle.org/t/programmatically-apply-a-plugin/34469 "2023-01-13T14:43:37Z")

</div>

The recently added pluginManagement block in settings.gradle is a most welcomed feature, however I can’t find a way to conditionally apply a plugin that has been declared in this block. Say you have a settings.gradle fi…

---

## [How to resolve warning: Execution optimizations have been disabled for task 'xyz' to ensure correctness](https://discuss.gradle.org/t/how-to-resolve-warning-execution-optimizations-have-been-disabled-for-task-xyz-to-ensure-correctness/44225)

<div class="topic-metadata">

**Author:** [@twwwt](https://discuss.gradle.org/u/twwwt)\
**Replies:** 5\
**Last updated:** [November 17, 2022, 3:00pm UTC](https://discuss.gradle.org/t/how-to-resolve-warning-execution-optimizations-have-been-disabled-for-task-xyz-to-ensure-correctness/44225 "2022-11-17T15:00:08Z")

</div>

Hello, we want to upgrade one of our plugins that defines a custom Gradle task for Gradle 7. At runtime, we are currently getting these warnings: Execution optimizations have been disabled for task ':xyz' to ensure cor…

---

## [Add properties file to generate distribution with "application" plugin](https://discuss.gradle.org/t/add-properties-file-to-generate-distribution-with-application-plugin/14070)

<div class="topic-metadata">

**Author:** [@FredClausen](https://discuss.gradle.org/u/FredClausen)\
**Replies:** 5\
**Last updated:** [October 24, 2022, 2:52pm UTC](https://discuss.gradle.org/t/add-properties-file-to-generate-distribution-with-application-plugin/14070 "2022-10-24T14:52:25Z")

</div>

I'm using the application plugin to generate a zip archive with a convenient launcher script so the user does not have to do much other than extract the zip and run the tool. I would like to make it even easier by incl…

---

## [Test retry plugin 1.4.0 has been released](https://discuss.gradle.org/t/test-retry-plugin-1-4-0-has-been-released/42904)

<div class="topic-metadata">

**Author:** [@SorinFlorea](https://discuss.gradle.org/u/SorinFlorea)\
**Replies:** 0\
**Last updated:** [May 11, 2022, 3:52pm UTC](https://discuss.gradle.org/t/test-retry-plugin-1-4-0-has-been-released/42904 "2022-05-11T15:52:02Z")

</div>

A new version of the test-retry-plugin has been released. For details of all the included fixes check here.

---

## [Test retry plugin 1.3.2 has been released](https://discuss.gradle.org/t/test-retry-plugin-1-3-2-has-been-released/42723)

<div class="topic-metadata">

**Author:** [@jonnybbb](https://discuss.gradle.org/u/jonnybbb)\
**Replies:** 0\
**Last updated:** [April 21, 2022, 2:33pm UTC](https://discuss.gradle.org/t/test-retry-plugin-1-3-2-has-been-released/42723 "2022-04-21T14:33:37Z")

</div>

A new version of the test-retry-plugin has been released. For details of all the included fixes check here.

---

## [Get project(":buildSrc") object](https://discuss.gradle.org/t/get-project-buildsrc-object/42654)

<div class="topic-metadata">

**Author:** [@guai](https://discuss.gradle.org/u/guai)\
**Replies:** 8\
**Last updated:** [April 8, 2022, 2:26pm UTC](https://discuss.gradle.org/t/get-project-buildsrc-object/42654 "2022-04-08T14:26:33Z")

</div>

Hi Is it possible to get an object of class Project for :buildSrc subproject (or whatever it is) from inside my Plugin.apply which itself is inside of buildSrc dir?

---

## [How to detect if a plugin was NOT applied?](https://discuss.gradle.org/t/how-to-detect-if-a-plugin-was-not-applied/28995)

<div class="topic-metadata">

**Author:** [@TWiStErRob](https://discuss.gradle.org/u/TWiStErRob)\
**Replies:** 10\
**Last updated:** [April 1, 2022, 9:31pm UTC](https://discuss.gradle.org/t/how-to-detect-if-a-plugin-was-not-applied/28995 "2022-04-01T21:31:01Z")

</div>

The opposite question is easy: plugins.withType or plugins.withId, but how do I detect if a plugin is not applied? For example: in my custom plugin I want to execute code only in modules the Android plugin is not applie…

---

## [Help needed with plugin publishing](https://discuss.gradle.org/t/help-needed-with-plugin-publishing/42404)

<div class="topic-metadata">

**Author:** [@guai](https://discuss.gradle.org/u/guai)\
**Replies:** 1\
**Last updated:** [March 11, 2022, 4:50am UTC](https://discuss.gradle.org/t/help-needed-with-plugin-publishing/42404 "2022-03-11T04:50:09Z")

</div>

Hi I’ve just published another version of my plugin via gradlew publishPlugins and it is there on the portal Version 1.1 (latest) Created 10 March 2022. But I cannot read it back When I use this new version it tries …

---

## [Configure default properties in Gradle precompiled plugin](https://discuss.gradle.org/t/configure-default-properties-in-gradle-precompiled-plugin/42057)

<div class="topic-metadata">

**Author:** [@rivancic](https://discuss.gradle.org/u/rivancic)\
**Replies:** 1\
**Last updated:** [March 5, 2022, 7:08pm UTC](https://discuss.gradle.org/t/configure-default-properties-in-gradle-precompiled-plugin/42057 "2022-03-05T19:08:09Z")

</div>

I want to pass properties from precompiled script plugin to the project itself. I have precompiled script plugin inside of buildSrc directory. 1 In buildSrc/gradle.properties I have defined defaultSpringBootVersion prop…

---

## [Custom plugins: how to avoid using afterEvaluate when setting another plugin's extension configuration](https://discuss.gradle.org/t/custom-plugins-how-to-avoid-using-afterevaluate-when-setting-another-plugins-extension-configuration/42314)

<div class="topic-metadata">

**Author:** [@chefhoobajoob](https://discuss.gradle.org/u/chefhoobajoob)\
**Replies:** 8\
**Last updated:** [February 26, 2022, 12:41am UTC](https://discuss.gradle.org/t/custom-plugins-how-to-avoid-using-afterevaluate-when-setting-another-plugins-extension-configuration/42314 "2022-02-26T00:41:20Z")

</div>

I have a custom plugin that supplies several build tasks as well as automating common settings and task configurations for the moowork node plugin. It also might apply different plugins based on its extension properties. …

---

## [Circular dependency on self](https://discuss.gradle.org/t/circular-dependency-on-self/42021)

<div class="topic-metadata">

**Author:** [@Jim\_Gish](https://discuss.gradle.org/u/Jim_Gish)\
**Replies:** 2\
**Last updated:** [February 1, 2022, 6:42pm UTC](https://discuss.gradle.org/t/circular-dependency-on-self/42021 "2022-02-01T18:42:24Z")

</div>

I’m attempting to convert a rather complex plugin working in 6.5 to 7.3. It’s been a painful slog through the whole thing. I was beginning to make progress, and then things went South again when I started having tasks …

---

## [Exclude not available in java-platform constraints?](https://discuss.gradle.org/t/exclude-not-available-in-java-platform-constraints/33360)

<div class="topic-metadata">

**Author:** [@geissld](https://discuss.gradle.org/u/geissld)\
**Replies:** 5\
**Last updated:** [January 11, 2022, 1:10am UTC](https://discuss.gradle.org/t/exclude-not-available-in-java-platform-constraints/33360 "2022-01-11T01:10:29Z")

</div>

Hi, I’ve tried to transform a currently manually written bom to a gradle java-platform plugin project. Now I see a error when trying to add exclusions to those contraints: api ("org.apache.cactus:cactus.core.fr…

---

## [How do I declare an output on an extension which is added to a task?](https://discuss.gradle.org/t/how-do-i-declare-an-output-on-an-extension-which-is-added-to-a-task/41433)

<div class="topic-metadata">

**Author:** [@trejkaz](https://discuss.gradle.org/u/trejkaz)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 11:15pm UTC](https://discuss.gradle.org/t/how-do-i-declare-an-output-on-an-extension-which-is-added-to-a-task/41433 "2021-11-11T23:15:23Z")

</div>

I have a plugin where it configures an extension on each task: compileTasks.configureEach { task -\> val warningsOptions = task.extensions.create("warnings", WarningsOptionsExtension::…

---

## [Symbolic link support](https://discuss.gradle.org/t/symbolic-link-support/13589)

<div class="topic-metadata">

**Author:** [@paleozogt](https://discuss.gradle.org/u/paleozogt)\
**Replies:** 4\
**Last updated:** [October 6, 2021, 10:47pm UTC](https://discuss.gradle.org/t/symbolic-link-support/13589 "2021-10-06T22:47:47Z")

</div>

I do a lot of work with zip files that contain symbolic links (think ios/maosx frameworks). Gradle sadly doesn't support symbolic links, so I've had to have gradle execute a shell to run zip/unzip from the command-line. …

---

## [Lazy evaluation for copy spec filter properties](https://discuss.gradle.org/t/lazy-evaluation-for-copy-spec-filter-properties/41110)

<div class="topic-metadata">

**Author:** [@twwwt](https://discuss.gradle.org/u/twwwt)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 12:48pm UTC](https://discuss.gradle.org/t/lazy-evaluation-for-copy-spec-filter-properties/41110 "2021-10-04T12:48:15Z")

</div>

As threads from the old forum are locked and do not allow new replies, let me continue on this thread that is about how to achieve lazy evaluation of replacement properties for file content filtering in a copy task. To …

---

## [PGP Verify Plugin: How to verify dependency signatures?](https://discuss.gradle.org/t/pgp-verify-plugin-how-to-verify-dependency-signatures/17516)

<div class="topic-metadata">

**Author:** [@mmoayyed](https://discuss.gradle.org/u/mmoayyed)\
**Replies:** 7\
**Last updated:** [August 25, 2021, 4:42am UTC](https://discuss.gradle.org/t/pgp-verify-plugin-how-to-verify-dependency-signatures/17516 "2021-08-25T04:42:58Z")

</div>

In Maven, there exists: https://github.com/s4u/pgpverify-maven-plugin How can one via gradle verify the signature of a downloaded artifact? Are there plugins available that already do this? Should we write one? Does …

---

## [Plugin approval](https://discuss.gradle.org/t/plugin-approval/30996)

<div class="topic-metadata">

**Author:** [@spasam](https://discuss.gradle.org/u/spasam)\
**Replies:** 0\
**Last updated:** [March 17, 2019, 11:57pm UTC](https://discuss.gradle.org/t/plugin-approval/30996 "2019-03-17T23:57:31Z")

</div>

Hello all, first time here! What is the typical timeline for plugin approval process? Just published one and is “Pending Approval” (Gradle - Plugin: com.pasam.gradle.buildinfo). Do I have to go through the approval pro…

---

## [Cannot apply plugin by id in init.gradle script](https://discuss.gradle.org/t/cannot-apply-plugin-by-id-in-init-gradle-script/30377)

<div class="topic-metadata">

**Author:** [@Cellebyte](https://discuss.gradle.org/u/Cellebyte)\
**Replies:** 6\
**Last updated:** [August 12, 2021, 8:35pm UTC](https://discuss.gradle.org/t/cannot-apply-plugin-by-id-in-init-gradle-script/30377 "2021-08-12T20:35:13Z")

</div>

Example //Snippet settingsEvaluated { settings -\> settings.pluginManagement { repositories { maven { credentials { username "username" passw…

---

## [Aspectj plugin example](https://discuss.gradle.org/t/aspectj-plugin-example/11126)

<div class="topic-metadata">

**Author:** [@Jason\_Zwolak](https://discuss.gradle.org/u/Jason_Zwolak)\
**Replies:** 1\
**Last updated:** [April 25, 2016, 4:39am UTC](https://discuss.gradle.org/t/aspectj-plugin-example/11126 "2016-04-25T04:39:43Z")

</div>

I have a working example of the aspectj plugin with gradle 2.3. See GitHub - jzwolak/gradle-aspectj-example: Here's a simple example using the gradle-aspectj plugin. And GitHub - semestry/gradle-aspectj: Gradle AspectJ…

---

## [Test retry plugin 1.3.1 has been released](https://discuss.gradle.org/t/test-retry-plugin-1-3-1-has-been-released/40359)

<div class="topic-metadata">

**Author:** [@paplorinc](https://discuss.gradle.org/u/paplorinc)\
**Replies:** 0\
**Last updated:** [June 29, 2021, 3:25pm UTC](https://discuss.gradle.org/t/test-retry-plugin-1-3-1-has-been-released/40359 "2021-06-29T15:25:22Z")

</div>

A new version of the test-retry-plugin (GitHub - gradle/test-retry-gradle-plugin: Gradle plugin to retry tests that have failed to mitigate test flakiness.) has been released. For details of all the included fixes check…

---

## [How to publish custom gradle plugin to private nexus](https://discuss.gradle.org/t/how-to-publish-custom-gradle-plugin-to-private-nexus/25904)

<div class="topic-metadata">

**Author:** [@pipiobjo](https://discuss.gradle.org/u/pipiobjo)\
**Replies:** 4\
**Last updated:** [June 11, 2021, 11:03am UTC](https://discuss.gradle.org/t/how-to-publish-custom-gradle-plugin-to-private-nexus/25904 "2021-06-11T11:03:21Z")

</div>

Hi, I wrote a custom gradle java based plugin for gradle version 4.5.1 and I try to publish it to a private nexus via the new gradle publish plugin. // gradle plugin configuration group = 'com.mycompany.gradle' gradle…

---

## [Gretty Needs Updating to Support Gradle 7](https://discuss.gradle.org/t/gretty-needs-updating-to-support-gradle-7/40131)

<div class="topic-metadata">

**Author:** [@ktaylor](https://discuss.gradle.org/u/ktaylor)\
**Replies:** 1\
**Last updated:** [June 8, 2021, 6:09am UTC](https://discuss.gradle.org/t/gretty-needs-updating-to-support-gradle-7/40131 "2021-06-08T06:09:19Z")

</div>

Gretty needs to be updated to support Gradle 7. Error: An exception occurred applying plugin request \[id: ‘org.gretty’, version: ‘3.0.4’\] Failed to apply plugin ‘org.gretty’. Cannot run Project.afterEvaluate(Closure…

---

## [Up-to-date checking broken for JacocoReport task?](https://discuss.gradle.org/t/up-to-date-checking-broken-for-jacocoreport-task/40007)

<div class="topic-metadata">

**Author:** [@trejkaz](https://discuss.gradle.org/u/trejkaz)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 2:26pm UTC](https://discuss.gradle.org/t/up-to-date-checking-broken-for-jacocoreport-task/40007 "2021-05-26T14:26:24Z")

</div>

We had a JacocoReport task which is gathering coverage reports from multiple subprojects into one place. Its configuration looks like this: def codeCoverageReport = tasks.register('codeCoverageReport', JacocoReport) { …

---

## [Run gradle build with specific gradle version](https://discuss.gradle.org/t/run-gradle-build-with-specific-gradle-version/39771)

<div class="topic-metadata">

**Author:** [@ttrungvo](https://discuss.gradle.org/u/ttrungvo)\
**Replies:** 6\
**Last updated:** [April 26, 2021, 9:30pm UTC](https://discuss.gradle.org/t/run-gradle-build-with-specific-gradle-version/39771 "2021-04-26T21:30:44Z")

</div>

Hi there, I’m trying to upgrade to the latest version of gradle 7.0 (or at least 6.8.3) and I’m looking for ways for developers to try out the latest version of gradle and if they find any problem they can easily revert…

---

## [Timeouts on plugins.gradle.org](https://discuss.gradle.org/t/timeouts-on-plugins-gradle-org/28336)

<div class="topic-metadata">

**Author:** [@k\_k](https://discuss.gradle.org/u/k_k)\
**Replies:** 11\
**Last updated:** [April 16, 2021, 5:01pm UTC](https://discuss.gradle.org/t/timeouts-on-plugins-gradle-org/28336 "2021-04-16T17:01:36Z")

</div>

Hi, Is there a place to report issues about plugins.gradle.org? We have a build that runs a check every hour and we see a timeout from plugins.gradle.org about 5 times a day. Here is a snippet from our logs. It’s always…

[Previous page](https://discuss.gradle.org/tag/plugins/117.md?match_all_tags=true&tags%5B%5D=plugins)

[Next page](https://discuss.gradle.org/tag/plugins/117.md?match_all_tags=true&page=2&tags%5B%5D=plugins)
