Comments (8)
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.
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.
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.
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.
Hey @zhangkun83, any chance to get this fixed?
from osdetector-gradle-plugin.
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.
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.
Thank you very much for looking at this issue and providing a fix! ! :-)
from osdetector-gradle-plugin.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osdetector-gradle-plugin.