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
2
2
import org.zeroturnaround.zip.ZipUtil
3
3
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
4
4
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
+
5
12
dependencies {
6
13
compile group : " org.processing" , name : " core" , version : " ${ processingVersion} "
7
14
compile group : " org.processing" , name : " pde" , version : " ${ processingVersion} "
8
15
compile group : " org.processing" , name : " java-mode" , version : " ${ processingVersion} "
9
16
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} "
13
20
}
14
21
15
22
// This task copies the gradle tooling jar into the mode folder
16
23
task copyToLib (type : Copy ) {
17
- from configurations. compileOnly . files
24
+ from configurations. compileAndCopy . files
18
25
into " mode"
19
26
}
20
27
build. dependsOn(copyToLib)
You can’t perform that action at this time.
0 commit comments