Comments (4)
Apparently, it should be located at https://plugins.gradle.org/m2/. Try to add this maven repository to your configuration.
from swagger-codegen-gradle-plugin.
So I tried the following configuration:
dependencies {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
// Swagger
compile "org.detoeuf:swagger-codegen-plugin:1.6.3"
}
and got this result:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'amp-gradle-plugin'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find org.detoeuf:swagger-codegen-plugin:1.6.3.
Searched in the following locations:
https://plugins.gradle.org/m2/org/detoeuf/swagger-codegen-plugin/1.6.3/swagger-codegen-plugin-1.6.3.pom
https://plugins.gradle.org/m2/org/detoeuf/swagger-codegen-plugin/1.6.3/swagger-codegen-plugin-1.6.3.jar
Required by:
project :
But if I pull down the repo and do ./gradlew install
and add mavenLocal()
to my dependency list, it resolves fine.
So perhaps publishing the plugin to https://plugins.gradle.org/m2 does not make the compilation unit available, and it can only be referenced as a plugin?
from swagger-codegen-gradle-plugin.
I think I've found it. When plugins are published to https://plugins.gradle.org/m2, their group name is prefixed with gradle.plugin
. So for resolving the compilation unit, you have to use gradle.plugin.org.detoeuf:swagger-codegen-plugin:1.6.3
.
You might want to publish the compilation unit on maven central and/or jcenter so other who want a compile-time dependency can reference the library.
from swagger-codegen-gradle-plugin.
I think gradle plugins are only meant to be used inside a gradle build as a plugin rather than as a dependency. Maybe that's partly why the plugins are stored under prefix gradle.plugin. I think it should be kept this way. This is also why it makes sense to keep this dependency on plugins.gradle.org
from swagger-codegen-gradle-plugin.
Related Issues (20)
- [Feature Request] Add support for incremental builds HOT 1
- [Feature Request] Support for multiple input specs HOT 1
- Multiple Tasks HOT 2
- License? HOT 6
- Pass swagger-codegen version as argument HOT 2
- Version 1.6.3 at the plugin repo doesn't match the example HOT 1
- Question about configuration (documentation issue?) HOT 1
- How to configure cleanOutputDir HOT 3
- ignoreFileOverride properties dont work for me HOT 1
- Doesn't seem to create output files HOT 4
- Generated Code Output Dir HOT 1
- Allow more than one language generation HOT 1
- Read swagger.yaml from dependency jar HOT 1
- Generating models from multiple sources HOT 6
- Plugin tries to clean project dir HOT 1
- Question regarding customised generator HOT 4
- Problem with ignoreFileOverride HOT 3
- Deprecation question! HOT 7
- No "Issues" tab for swagger-codegen-gradle-plugin-example
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 swagger-codegen-gradle-plugin.