I have added all of the above to my build.gradle. Whenever I build the project the build fails.
"A problem occurred evaluatiing root project: 'myproject'.
Could not resolve all dependencies for configuration ':doclet'.
Could not download artifact 'com.tenxerconsulting:swagger-doclet:1.0.7@jar'
Artifact 'com.tenxerconsulting:swagger-doclet:1.0.7@jar' not found.
Any ideas?
Edit:
Changed the version to 1.1.3 and it was successful in downloading the dependency, however my project uses Java 7 so i need 1.0.7
`apply plugin: 'java'
configurations { doclet }
repositories { mavenLocal() mavenCentral() }
dependencies { doclet( [group: 'com.tenxerconsulting', name: 'swagger-doclet', version: '1.0.7'], [group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.0'] ) }
task generateRestApiDocs(type: Javadoc) { source = sourceSets.main.allJava destinationDir = reporting.file("rest-api-docs") options.classpath = configurations.doclet.files.asType(List) options.docletpath = configurations.doclet.files.asType(List) options.doclet = "com.tenxerconsulting.swagger.doclet.ServiceDoclet" options.addStringOption("apiVersion", "1") options.addStringOption("docBasePath", "/sps/apidocs") options.addStringOption("apiBasePath", "/sps") options.addBooleanOption("skipUiFiles", true) }`
I have added all of the above to my build.gradle. Whenever I build the project the build fails.
"A problem occurred evaluatiing root project: 'myproject'. Could not resolve all dependencies for configuration ':doclet'. Could not download artifact 'com.tenxerconsulting:swagger-doclet:1.0.7@jar' Artifact 'com.tenxerconsulting:swagger-doclet:1.0.7@jar' not found.
Any ideas?
Edit:
Changed the version to 1.1.3 and it was successful in downloading the dependency, however my project uses Java 7 so i need 1.0.7