(Note that I am a novice at Eclipse / Gradle, so please bear with me.)
I am trying to modify the following project because there is a customization I would like to make: https://github.com/Swagger2Markup/swagger2markup
In turn, I would like to the use the modified binary in the following project: https://github.com/Swagger2Markup/swagger2markup-gradle-project-template
Overall I believe I need to do the following steps:
- Download the source for that project and compile it to a local .jar file
- Modify the "template project" build.gradle to reference the local .jar
I think I got step #1 to work by importing the Gradle project into Eclipse, going to Gradle Tasks, right clicking "jar" and running the task. A .jar is generated.
After that, I download the template project and copy the generated .jar into the libs folder of the template project. Then I modify build.gradle:
I comment out the following line under buildscript > dependencies
//classpath "io.github.swagger2markup:swagger2markup:1.0.1"
Then I added the following to the top of the file per this post:
apply plugin: 'java'
dependencies {
runtime files('libs/swagger2markup-1.3.1-SNAPSHOT.jar')
}
(I also tried using compile
instead of runtime
, as well as fileTree
.)
No matter what I do, the template project seems to download the remote (unmodified) binary.
How do I force the project to use the local file?