mirror of
https://github.com/jlengrand/picocli.git
synced 2026-03-10 00:31:17 +00:00
Fix gradle warnings
This commit is contained in:
committed by
Remko Popma
parent
42f3a74a54
commit
758558b981
12
build.gradle
12
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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user