@@ -6,27 +6,27 @@ import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
66// Extend compile to copy the jars from gradle-tooling and slf4j:
77// https://stackoverflow.com/a/43602463
88configurations {
9- compile . extendsFrom compileAndCopy
10- compile . extendsFrom compileAndExtract
9+ implementation . extendsFrom implementationCopy
10+ implementation . extendsFrom implementationExtract
1111}
1212
1313dependencies {
14- compile group : " org.processing" , name : " core" , version : " ${ processingVersion} "
15- compile group : " org.processing" , name : " pde" , version : " ${ processingVersion} "
16- compile group : " org.processing" , name : " java-mode" , version : " ${ processingVersion} "
14+ implementation group : " org.processing" , name : " core" , version : " ${ processingVersion} "
15+ implementation group : " org.processing" , name : " pde" , version : " ${ processingVersion} "
16+ implementation group : " org.processing" , name : " java-mode" , version : " ${ processingVersion} "
1717
18- compileAndExtract " org.eclipse.jdt:org.eclipse.jdt.debug:${ jdtVersion} "
18+ implementationExtract " org.eclipse.jdt:org.eclipse.jdt.debug:${ jdtVersion} "
1919
20- compileAndCopy " org.gradle:gradle-tooling-api:${ toolingVersion} "
21- compileAndCopy " org.slf4j:slf4j-api:${ slf4jVersion} "
22- compileAndCopy " org.slf4j:slf4j-simple:${ slf4jVersion} "
20+ implementationCopy " org.gradle:gradle-tooling-api:${ toolingVersion} "
21+ implementationCopy " org.slf4j:slf4j-api:${ slf4jVersion} "
22+ implementationCopy " org.slf4j:slf4j-simple:${ slf4jVersion} "
2323
24- compile fileTree(include : [" jdi.jar" , " jdimodel.jar" ], dir : ' mode' )
24+ implementation fileTree(include : [" jdi.jar" , " jdimodel.jar" ], dir : ' mode' )
2525}
2626
2727// This task copies the gradle tooling jar into the mode folder
2828task copyToLib (type : Copy ) {
29- from configurations. compileAndCopy . files
29+ from configurations. implementationCopy . files
3030 into " mode"
3131}
3232build. dependsOn(copyToLib)
@@ -42,7 +42,7 @@ sourceSets {
4242task getjdi (type : Copy ) {
4343 // This task extracts the jar files inside org.eclipse.jdt.debug, which are
4444 // jdi.jar and jdimodel.jar and needed to build the debugger.
45- from(zipTree(configurations. compileAndExtract . files[0 ])) {
45+ from(zipTree(configurations. implementationExtract . files[0 ])) {
4646 include ' **/*.jar'
4747 exclude ' META-INF'
4848 }
0 commit comments