Git Product home page Git Product logo

Comments (8)

normano avatar normano commented on May 7, 2024 2

Resolved it putting this in settings.gradle

pluginManagement {
  repositories {
    mavenCentral()
    gradlePluginPortal()
  }

  resolutionStrategy {
    eachPlugin {

      if(requested.id.namespace == 'com.google' && requested.id.name == 'osdetector') {
        useModule 'com.google.gradle:osdetector-gradle-plugin:1.6.0'
      }
    }
  }
}

from osdetector-gradle-plugin.

aalmiray avatar aalmiray commented on May 7, 2024 1

The missing metadata is not supposed to be located inside the plugin JAR file but rather as a separate POM file that’s published alongside said JAR. This additional POM is generated by the java-gradle-plugin and published by the the plugin-publish plugin, like the plugin development guide explains.

from osdetector-gradle-plugin.

tiainen avatar tiainen commented on May 7, 2024

I can confirm this. It is not possible to apply the plugin with a plugins {} block using version 1.6.0. This results in the following build failure:

> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find gradle.plugin.com.google.gradle:osdetector-gradle-plugin:1.6.0.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/gradle/plugin/com/google/gradle/osdetector-gradle-plugin/1.6.0/osdetector-gradle-plugin-1.6.0.pom
       - https://plugins.gradle.org/m2/gradle/plugin/com/google/gradle/osdetector-gradle-plugin/1.6.0/osdetector-gradle-plugin-1.6.0.jar
     Required by:
         project : > com.google.osdetector:com.google.osdetector.gradle.plugin:1.6.0

from osdetector-gradle-plugin.

aalmiray avatar aalmiray commented on May 7, 2024

Please refer to https://docs.gradle.org/current/userguide/java_gradle_plugin.html and configure the java-gradle-plugin plugin in this build. The problem is caused by missing metadata that this plugin can generate.

from osdetector-gradle-plugin.

brunoborges avatar brunoborges commented on May 7, 2024

Hey @zhangkun83, any chance to get this fixed?

from osdetector-gradle-plugin.

zhangkun83 avatar zhangkun83 commented on May 7, 2024

Checked the jar files of 1.4.0 and 1.6.0, didn't find anything different in their metadata. I added java-gradle-plugin and built a jar, and resulted in the same metadata.

Found related issue on the forum:
https://discuss.gradle.org/t/error-nosuchkey-for-plugin-https-plugins-gradle-org-m2-org-standardout-gradle-eclipseconfig-1-1-1/29338

Although I doubt this issue is due to the build file, I will add java-gradle-plugin to the build file and do a new release.

from osdetector-gradle-plugin.

zhangkun83 avatar zhangkun83 commented on May 7, 2024

I have released 1.6.1. I successfully downloaded files under

https://plugins.gradle.org/m2/gradle/plugin/com/google/gradle/osdetector-gradle-plugin/1.6.1/

Looks like the issue is resolved. Please reopen it if it's not the case.

from osdetector-gradle-plugin.

aalmiray avatar aalmiray commented on May 7, 2024

Thank you very much for looking at this issue and providing a fix! ! :-)

from osdetector-gradle-plugin.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.