File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,26 @@ import java.nio.file.Files
22import org.zeroturnaround.zip.ZipUtil
33import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
44
5+
6+ // Extend compile to copy the jars from gradle-tooling and slf4j:
7+ // https://stackoverflow.com/a/43602463
8+ configurations {
9+ compile. extendsFrom compileAndCopy
10+ }
11+
512dependencies {
613 compile group : " org.processing" , name : " core" , version : " ${ processingVersion} "
714 compile group : " org.processing" , name : " pde" , version : " ${ processingVersion} "
815 compile group : " org.processing" , name : " java-mode" , version : " ${ processingVersion} "
916
10- compileOnly " org.gradle:gradle-tooling-api:${ toolingVersion} "
11- compileOnly " org.slf4j:slf4j-api:${ slf4jVersion} "
12- compileOnly " org.slf4j:slf4j-simple:${ slf4jVersion} "
17+ compileAndCopy " org.gradle:gradle-tooling-api:${ toolingVersion} "
18+ compileAndCopy " org.slf4j:slf4j-api:${ slf4jVersion} "
19+ compileAndCopy " org.slf4j:slf4j-simple:${ slf4jVersion} "
1320}
1421
1522// This task copies the gradle tooling jar into the mode folder
1623task copyToLib (type : Copy ) {
17- from configurations. compileOnly . files
24+ from configurations. compileAndCopy . files
1825 into " mode"
1926}
2027build. dependsOn(copyToLib)
You can’t perform that action at this time.
0 commit comments