diff --git a/build.gradle b/build.gradle index 0dac98f8..ba8c748c 100644 --- a/build.gradle +++ b/build.gradle @@ -96,12 +96,12 @@ allprojects { } } dependencies { - testCompile "junit:junit:$junitVersion", - "org.hamcrest:hamcrest-core:$hamcrestCoreVersion", - "org.fusesource.jansi:jansi:$jansiVersion", - "org.codehaus.groovy:groovy-all:$groovyVersion", - "com.github.stefanbirkner:system-rules:$systemRulesVersion", - "pl.pragmatists:JUnitParams:1.1.1" + testImplementation "junit:junit:$junitVersion", + "org.hamcrest:hamcrest-core:$hamcrestCoreVersion", + "org.fusesource.jansi:jansi:$jansiVersion", + "org.codehaus.groovy:groovy-all:$groovyVersion", + "com.github.stefanbirkner:system-rules:$systemRulesVersion", + "pl.pragmatists:JUnitParams:1.1.1" } tasks.withType(JavaCompile) { options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation' diff --git a/picocli-annotation-processing-tests/build.gradle b/picocli-annotation-processing-tests/build.gradle index b29c5095..bac59d39 100644 --- a/picocli-annotation-processing-tests/build.gradle +++ b/picocli-annotation-processing-tests/build.gradle @@ -9,12 +9,12 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 dependencies { - compile rootProject - compile project(':picocli-codegen') - testCompile "junit:junit:$junitVersion", - "com.google.testing.compile:compile-testing:$compileTestingVersion", - "org.apache.logging.log4j:log4j-api:2.13.0", - "org.apache.logging.log4j:log4j-core:2.13.0" + implementation rootProject + implementation project(':picocli-codegen') + testImplementation "junit:junit:$junitVersion", + "com.google.testing.compile:compile-testing:$compileTestingVersion", + "org.apache.logging.log4j:log4j-api:2.13.0", + "org.apache.logging.log4j:log4j-core:2.13.0" if (org.gradle.api.JavaVersion.current().isJava8Compatible() && !org.gradle.api.JavaVersion.current().isJava9Compatible()) { // only use tools.jar on Java 8, it was removed in Java 9 // https://github.com/google/compile-testing/issues/134 diff --git a/picocli-codegen/build.gradle b/picocli-codegen/build.gradle index 2cb45406..384cb514 100644 --- a/picocli-codegen/build.gradle +++ b/picocli-codegen/build.gradle @@ -15,8 +15,8 @@ if (org.gradle.api.JavaVersion.current().isJava8Compatible() && !org.gradle.api. targetCompatibility = 1.6 } dependencies { - compile rootProject - testCompile "junit:junit:$junitVersion" + implementation rootProject + testImplementation "junit:junit:$junitVersion" } //task generateGraalReflectionConfig(type: JavaExec) { diff --git a/picocli-examples/build.gradle b/picocli-examples/build.gradle index 193c27ec..3853c589 100644 --- a/picocli-examples/build.gradle +++ b/picocli-examples/build.gradle @@ -22,22 +22,22 @@ configurations { ivy } dependencies { - compile rootProject - compile project(':picocli-groovy') + implementation rootProject + implementation project(':picocli-groovy') implementation "org.jetbrains.kotlin:kotlin-stdlib" implementation 'org.scala-lang:scala-library:2.13.3' - ivy "org.apache.ivy:ivy:$ivyVersion" // for Intelli/J - compile "org.codehaus.groovy:groovy-all:$groovyVersion", - "org.apache.ivy:ivy:$ivyVersion", // for Intelli/J - // for the Logging example - "org.apache.logging.log4j:log4j-api:2.13.0", - "org.apache.logging.log4j:log4j-core:2.13.0", - // for the JSR-380 BeanValidation example - "javax.validation:validation-api:2.0.0.Final", - "org.hibernate.validator:hibernate-validator:6.1.2.Final", - "org.hibernate.validator:hibernate-validator-annotation-processor:6.1.2.Final", - "javax.el:javax.el-api:3.0.0", - "org.glassfish.web:javax.el:2.2.6" + ivy "org.apache.ivy:ivy:$ivyVersion" // for Intelli/J + implementation "org.codehaus.groovy:groovy-all:$groovyVersion", + "org.apache.ivy:ivy:$ivyVersion", // for Intelli/J + // for the Logging example + "org.apache.logging.log4j:log4j-api:2.13.0", + "org.apache.logging.log4j:log4j-core:2.13.0", + // for the JSR-380 BeanValidation example + "javax.validation:validation-api:2.0.0.Final", + "org.hibernate.validator:hibernate-validator:6.1.2.Final", + "org.hibernate.validator:hibernate-validator-annotation-processor:6.1.2.Final", + "javax.el:javax.el-api:3.0.0", + "org.glassfish.web:javax.el:2.2.6" implementation "org.jetbrains.kotlin:kotlin-script-runtime:1.4.10" } tasks.withType(GroovyCompile) { diff --git a/picocli-groovy/build.gradle b/picocli-groovy/build.gradle index d665ca59..1f868bad 100644 --- a/picocli-groovy/build.gradle +++ b/picocli-groovy/build.gradle @@ -14,10 +14,10 @@ configurations { ivy } dependencies { - compile rootProject - compileOnly "org.codehaus.groovy:groovy-all:$groovyVersion" - ivy "org.apache.ivy:ivy:$ivyVersion" // for Gradle - testCompile "junit:junit:$junitVersion" + implementation rootProject + compileOnly "org.codehaus.groovy:groovy-all:$groovyVersion" + ivy "org.apache.ivy:ivy:$ivyVersion" // for Gradle + testImplementation "junit:junit:$junitVersion" } tasks.withType(GroovyCompile) { // this, and the `configurations {ivy}` section, are a workaround for the dreaded diff --git a/picocli-shell-jline2/build.gradle b/picocli-shell-jline2/build.gradle index 70f3a410..07e1bd8c 100644 --- a/picocli-shell-jline2/build.gradle +++ b/picocli-shell-jline2/build.gradle @@ -10,9 +10,9 @@ description 'Picocli Shell JLine2 - easily build interactive shell applications version "$projectVersion" dependencies { - compile rootProject - compile "jline:jline:$jlineVersion" - testCompile "junit:junit:$junitVersion" + implementation rootProject + implementation "jline:jline:$jlineVersion" + testImplementation "junit:junit:$junitVersion" } jar { diff --git a/picocli-shell-jline3/build.gradle b/picocli-shell-jline3/build.gradle index f0bed18a..89ef2647 100644 --- a/picocli-shell-jline3/build.gradle +++ b/picocli-shell-jline3/build.gradle @@ -12,10 +12,10 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 dependencies { - compile rootProject - compile "org.jline:jline:$jline3Version" - compile "org.jline:jline-console:$jline3Version" - testCompile "junit:junit:$junitVersion" + implementation rootProject + implementation "org.jline:jline:$jline3Version" + implementation "org.jline:jline-console:$jline3Version" + testImplementation "junit:junit:$junitVersion" } jar { diff --git a/picocli-spring-boot-starter/build.gradle b/picocli-spring-boot-starter/build.gradle index 68c79452..6f8bad13 100644 --- a/picocli-spring-boot-starter/build.gradle +++ b/picocli-spring-boot-starter/build.gradle @@ -16,8 +16,8 @@ repositories { } dependencies { - compile rootProject - compile "org.springframework.boot:spring-boot-starter:$springBootVersion" + implementation rootProject + implementation "org.springframework.boot:spring-boot-starter:$springBootVersion" annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:$springBootVersion" }