I′m trying to build my project using gradle. I have de build.gradle file as following:
plugins {
id "fr.putnami.gwt" version "0.4.0"
id "info.solidsoft.pitest" version "1.3.0"
}
buildscript {
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'
classpath 'gradle.plugin.de.fntsoftware.gradle:markdown-to-pdf:1.1.0'
}
}
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'de.fntsoftware.gradle.markdown-to-pdf'
When I try to execute the build task, I always get:
all buildscript {} blocks must appear before any plugins {} blocks in the script
I′ve already tried to put the first block of plugins inside of the buildscript one, but nothing is working. Can someone help me, please?
Thanks