From dfc9e818a2eb4a619b8bf771b385062f015273d7 Mon Sep 17 00:00:00 2001 From: dalaocu Date: Tue, 6 Apr 2021 22:06:57 +0800 Subject: [PATCH] build.gradle rm warnings --- build.gradle | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index 7b53abb..e23ee59 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,3 @@ -apply plugin: 'maven' apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' @@ -12,7 +11,7 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() - maven { url "http://maven.aliyun.com/nexus/content/groups/public/"} + maven { url "https://maven.aliyun.com/nexus/content/groups/public/"} maven { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://dl.bintray.com/ethereum/maven/" } mavenLocal() @@ -23,11 +22,10 @@ repositories { dependencies { compileOnly 'org.projectlombok:lombok:1.18.20' annotationProcessor 'org.projectlombok:lombok:1.18.20' - compile ('com.webank:solc-gradle-plugin:1.0.0-SNAPSHOT') - compile ('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:2.7.1') - compile group: 'info.picocli', name: 'picocli', version: '4.6.1' - //compile 'org.bouncycastle:bcprov-jdk15on:1.61' - compile ("org.slf4j:slf4j-api:1.7.30") + implementation ('com.webank:solc-gradle-plugin:1.0.0-SNAPSHOT') + implementation ('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:2.7.1') + implementation group: 'info.picocli', name: 'picocli', version: '4.6.1' + implementation ("org.slf4j:slf4j-api:1.7.30") } sourceSets { @@ -42,9 +40,8 @@ sourceSets { } jar { enabled = true - destinationDir file('dist') - archiveName project.name + '.jar' - //Otherwise the main class will not be found + destinationDirectory = file('dist') + archiveFileName = project.name + '.jar' exclude '**/*.DSA' exclude '**/*.RSA' exclude '**/*.SF' @@ -55,7 +52,7 @@ jar { } from { - configurations.compile.collect { + sourceSets.main.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }