title: Convert .md file into .pdf using Gradle
body: <p>I´ve been searching for a way to automatically convert my readme.md file into a .pdf using a gradle task. I know that I can do this by using my prompt console, and it works fine, but I want to know if there is a way of doing the same by creating a gradle task. I´ve found some gitHub projects, and I´ve try some of them, but I always get errors in applying the needed plugins. There is a simple way of doing this, I know that gradle has a huge amount of task types, but I can´t find one for this. Can someone help me?</p>
  <p>I´ve trying to use the plugin from <a href="https://github.com/fntsoftware/gradle-plugin-markdown2pdf" rel="nofollow noreferrer">https://github.com/fntsoftware/gradle-plugin-markdown2pdf</a>, but when I run the implemented gradle task, I get the error:
  <em>Could not get unknown property 'MarkdownToPdfTask' for root project 'cms' of type org.gradle.api.Project</em></p>
  <p>My build gradle from root path:</p>
  <pre><code>plugins {
    id 'java'
    id 'war'
    id 'jacoco'
    id 'eclipse'
    id &quot;fr.putnami.gwt&quot; version &quot;0.4.0&quot;
    id &quot;info.solidsoft.pitest&quot; version &quot;1.3.0&quot;
    id &quot;de.fntsoftware.gradle.markdown-to-pdf&quot; version &quot;1.1.0&quot;
  }
  
  repositories {
    mavenCentral() 
    maven {
              url 'https://plugins.gradle.org/m2/'
          }
  }
   
  dependencies {
    testCompile 'junit:junit:4.12'
    testCompile 'org.easymock:easymock:2.5.2'
    testCompile 'com.google.gwt:gwt-dev:2.8.1'
    compile 'net.sourceforge.plantuml:plantuml:8001'
  }
  
  
  task exampleTask1(type: MarkdownToPdfTask){
      inputFile = '/PATH/TO/README.md'
      outputFile = '/PATH/TO/README.pdf'
  }
  </code></pre>
  <p>My build gradle from buildSrc path:</p>
  <pre><code>plugins {
  
    id &quot;de.fntsoftware.gradle.markdown-to-pdf&quot; version &quot;1.1.0&quot;
  }
  
  repositories {
      mavenCentral()
      maven {
              url 'https://plugins.gradle.org/m2/'
          }
  }
      
  dependencies {
      // compile gradleApi()
      compile 'org.codehaus.groovy:groovy:2.4.2'
      compile 'commons-io:commons-io:2.4'
      compile 'net.sourceforge.plantuml:plantuml:8051'
      }
  </code></pre>
  <p>Thank you.</p>