Skip to content

Commit

Permalink
Fix gradle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored and remkop committed Nov 3, 2020
1 parent 42f3a74 commit 758558b
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 41 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 6 additions & 6 deletions picocli-annotation-processing-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions picocli-codegen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
28 changes: 14 additions & 14 deletions picocli-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions picocli-groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions picocli-shell-jline2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions picocli-shell-jline3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions picocli-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 758558b

Please sign in to comment.