question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publish plugin marker artifacts for use with plugins DSL

See original GitHub issue

To use this syntax aka plugins DSL the plugin must have a corresponding marker artifact in one of the plugin repositories:

plugins {
    id 'com.google.gms.google-services' version '4.2.0'
}

Also instead of using buildscript block one would have to add Google’s Maven as a plugin repository in their settings.gradle:

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
    }
}

PR for google-services-plugin

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
EdricChan03commented, Apr 10, 2022

@technoir42 Apologies for the ping, but are there any plans on getting the other 2 plugins oss-licenses-plugin and strict-version-matcher-plugin updated with plugin markers? I’ve noticed that in the PR #51 you’ve mentioned that you’re planning to update the last 2 plugins as well. 😅

EDIT: I’ve since created a PR #222 that aims to publish a plugin marker for the OSS Licenses plugin

1reaction
plnicecommented, Nov 17, 2021

@davidmotson sorry for mentioning directly, but I’ve seen that you are involved in a similar task for Firebase (https://github.com/firebase/firebase-android-sdk/issues/3125#issuecomment-966711911) which is going to be released soon, and you also contributed some code to the google-services plugin - so will you be able to also have a look at the plugin marker artifact support for google-services? I could completely get rid of buildscript block in my project when plugin markers are released for both Firebase plugins and google-services.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Gradle Plugins
Plugin Marker Artifacts. Since the plugins {} DSL block only allows for declaring plugins by their globally unique plugin id and version properties, ......
Read more >
Gradle Goodness: Custom Plugin Repositories With ... - Mrhaki
In our build file we use the plugins DSL to apply the ... the plugin marker artifacts when we publish our plugin to...
Read more >
Gradle Artifactory Plugin - JFrog - JFrog Documentation
The Gradle Artifactory Plugin allows you to deploy your build artifacts and build information to Artifactory and also to resolve your build ...
Read more >
gradle - Plugin marker artifact for precompiled script plugin not ...
Configure the Maven or Ivy Publish Plugins publishing plugins to publish a Plugin Marker Artifact for each plugin.
Read more >
Loading Gradle plugins in 2019 - Martin Bonnin - Medium
You can use the plugin block in your module build script, in the root build ... Gradle introduced marker artifacts to lookup the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found