From 0f5c6c70a447df951d74ddb9550ba1296ad72b8b Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Sat, 2 May 2020 22:17:14 -0400 Subject: [PATCH] problem: gradle configuration warnings --- build.gradle | 115 ++++++++++++++++++++++++++------------------------- 1 file changed, 59 insertions(+), 56 deletions(-) diff --git a/build.gradle b/build.gradle index f60b917d..239c1df2 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,6 @@ plugins { id 'java' id 'groovy' id 'idea' - id 'maven' id 'application' id 'org.jetbrains.kotlin.jvm' version '1.3.70' @@ -33,14 +32,14 @@ plugins { group = 'io.emeraldpay.dshackle' version = '0.7-SNAPSHOT' -targetCompatibility = '1.8' -sourceCompatibility = '1.8' +targetCompatibility = '11' +sourceCompatibility = '11' repositories { mavenLocal() mavenCentral() - maven { url "http://repo.spring.io/snapshot" } - maven { url "http://repo.spring.io/milestone" } + maven { url "https://repo.spring.io/snapshot" } + maven { url "https://repo.spring.io/milestone" } maven { url "https://dl.bintray.com/infinitape/etherjar" } maven { url "https://dl.bintray.com/emerald/emerald-grpc" } } @@ -53,79 +52,83 @@ configurations { } dependencies { - compile "io.emeraldpay:emerald-grpc:0.6.0-0.2" + implementation "io.emeraldpay:emerald-grpc:0.6.0-0.2" - compile "io.grpc:grpc-protobuf:${grpcVersion}" - compile "io.grpc:grpc-stub:${grpcVersion}" - compile "io.grpc:grpc-netty:${grpcVersion}" - compile "io.netty:netty-tcnative-boringssl-static:2.0.29.Final" - compile "io.netty:netty-all:4.1.48.Final" + implementation "io.grpc:grpc-protobuf:${grpcVersion}" + implementation "io.grpc:grpc-stub:${grpcVersion}" + implementation "io.grpc:grpc-netty:${grpcVersion}" + implementation "io.netty:netty-tcnative-boringssl-static:2.0.29.Final" + implementation "io.netty:netty-all:4.1.48.Final" - compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8" - compile "org.jetbrains.kotlin:kotlin-reflect" + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" + implementation "org.jetbrains.kotlin:kotlin-reflect" - compile "org.springframework:spring-core:$springVersion" - compile "org.springframework:spring-context:$springVersion" - compile "org.springframework.security:spring-security-core:$springVersion" - compile "org.springframework.security:spring-security-web:$springVersion" - compile "org.springframework.security:spring-security-config:$springVersion" - compile "io.projectreactor:reactor-core:$reactorVersion" - compile "io.projectreactor.netty:reactor-netty:0.9.5.RELEASE" - compile 'io.projectreactor.addons:reactor-extra:3.2.3.RELEASE' - compile 'io.projectreactor.kotlin:reactor-kotlin-extensions:1.0.2.RELEASE' - compile 'com.salesforce.servicelibs:reactor-grpc:0.10.0' - compile 'io.lettuce:lettuce-core:5.2.2.RELEASE' + implementation "org.springframework:spring-core:$springVersion" + implementation "org.springframework:spring-context:$springVersion" + implementation "org.springframework.security:spring-security-core:$springVersion" + implementation "org.springframework.security:spring-security-web:$springVersion" + implementation "org.springframework.security:spring-security-config:$springVersion" + implementation "io.projectreactor:reactor-core:$reactorVersion" + implementation "io.projectreactor.netty:reactor-netty:0.9.5.RELEASE" + implementation 'io.projectreactor.addons:reactor-extra:3.2.3.RELEASE' + implementation 'io.projectreactor.kotlin:reactor-kotlin-extensions:1.0.2.RELEASE' + implementation 'com.salesforce.servicelibs:reactor-grpc:0.10.0' + implementation 'io.lettuce:lettuce-core:5.2.2.RELEASE' - compile 'org.yaml:snakeyaml:1.24' + implementation 'org.yaml:snakeyaml:1.24' - compile "io.infinitape:etherjar-domain:$etherjarVersion" - compile "io.infinitape:etherjar-hex:$etherjarVersion" - compile "io.infinitape:etherjar-rpc-http:$etherjarVersion" - compile "io.infinitape:etherjar-rpc-ws:$etherjarVersion" - compile "io.infinitape:etherjar-rpc-emerald:$etherjarVersion" - compile "io.infinitape:etherjar-tx:$etherjarVersion" - compile 'org.bitcoinj:bitcoinj-core:0.15.8' + implementation "io.infinitape:etherjar-domain:$etherjarVersion" + implementation "io.infinitape:etherjar-hex:$etherjarVersion" + implementation "io.infinitape:etherjar-rpc-http:$etherjarVersion" + implementation "io.infinitape:etherjar-rpc-ws:$etherjarVersion" + implementation "io.infinitape:etherjar-rpc-emerald:$etherjarVersion" + implementation "io.infinitape:etherjar-tx:$etherjarVersion" + implementation 'org.bitcoinj:bitcoinj-core:0.15.8' - compile 'org.apache.httpcomponents:httpmime:4.5.8' - compile 'org.apache.httpcomponents:httpclient:4.5.8' - compile 'com.fasterxml.jackson.core:jackson-core:2.9.8' - compile 'com.fasterxml.jackson.core:jackson-databind:2.9.8' - compile 'commons-io:commons-io:2.6' - compile 'org.apache.commons:commons-lang3:3.9' - compile 'org.apache.commons:commons-collections4:4.3' - compile 'javax.annotation:javax.annotation-api:1.3.2' - compile 'org.bouncycastle:bcprov-jdk15on:1.61' + implementation 'org.apache.httpcomponents:httpmime:4.5.8' + implementation 'org.apache.httpcomponents:httpclient:4.5.8' + implementation 'com.fasterxml.jackson.core:jackson-core:2.9.8' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.8' + implementation 'commons-io:commons-io:2.6' + implementation 'org.apache.commons:commons-lang3:3.9' + implementation 'org.apache.commons:commons-collections4:4.3' + implementation 'javax.annotation:javax.annotation-api:1.3.2' + implementation 'org.bouncycastle:bcprov-jdk15on:1.61' - compile("org.springframework.boot:spring-boot-starter:$springBootVersion") { + implementation("org.springframework.boot:spring-boot-starter:$springBootVersion") { exclude module: 'spring-boot-starter-logging' } - compile "org.slf4j:slf4j-api:$slf4jVersion" - compile "org.apache.logging.log4j:log4j-slf4j-impl:2.11.1" - compile "org.slf4j:jul-to-slf4j:$slf4jVersion" - compile "org.slf4j:jcl-over-slf4j:$slf4jVersion" + implementation "org.slf4j:slf4j-api:$slf4jVersion" + implementation "org.apache.logging.log4j:log4j-slf4j-impl:2.11.1" + implementation "org.slf4j:jul-to-slf4j:$slf4jVersion" + implementation "org.slf4j:jcl-over-slf4j:$slf4jVersion" - - testCompile "org.codehaus.groovy:groovy:$groovyVersion" - testCompile 'cglib:cglib-nodep:3.3.0' - testCompile "org.spockframework:spock-core:$spockVersion" - testCompile "io.grpc:grpc-testing:${grpcVersion}" - testCompile "io.projectreactor:reactor-test:$reactorVersion" - testCompile 'org.objenesis:objenesis:3.1' - testCompile 'org.mock-server:mockserver-netty:5.10' + testImplementation 'cglib:cglib-nodep:3.3.0' + testImplementation "org.spockframework:spock-core:$spockVersion" + testImplementation "io.grpc:grpc-testing:${grpcVersion}" + testImplementation "io.projectreactor:reactor-test:$reactorVersion" + testImplementation 'org.objenesis:objenesis:3.1' + testImplementation 'org.mock-server:mockserver-netty:5.10' } compileKotlin { kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" } } compileTestKotlin { kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" } } +test { + jvmArgs '-ea' + testLogging.showStandardStreams = true + testLogging.exceptionFormat = 'full' +} + application { mainClassName = 'io.emeraldpay.dshackle.StarterKt' }