com.maxxton.microdocs.crawler.gradle.tasks.MicroDocsCheckProjectTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microdocs-crawler-gradle Show documentation
Show all versions of microdocs-crawler-gradle Show documentation
MicroDocs crawler for gradle projects
The newest version!
package com.maxxton.microdocs.crawler.gradle.tasks
import com.maxxton.microdocs.core.domain.check.CheckResponse
import com.maxxton.microdocs.publisher.MicroDocsPublisher
import com.maxxton.microdocs.publisher.ServerConfiguration
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
/**
* @author Steven Hermans
*/
class MicroDocsCheckProjectTask extends DefaultTask {
String reportFile;
String url;
String username = null;
String password = null;
String env = null;
@TaskAction
def checkProject() {
CheckResponse response = MicroDocsPublisher.checkProject(new ServerConfiguration(url, username, password), new File(reportFile), project.name, env);
MicroDocsPublisher.printCheckResponse(response, project.getRootDir());
}
}