@@ -38,38 +38,36 @@ task version(type: Exec) {
3838
3939dependencies {
4040 // local libraries
41- compile fileTree(dir : ' libs' , include : ' *.jar' )
41+ implementation fileTree(dir : ' libs' , include : ' *.jar' )
4242 // end local libraries
43- testCompile group : ' org.hamcrest' , name : ' hamcrest-junit' , version : ' 1.0.0.1'
44- testCompile group : ' com.github.stefanbirkner' , name : ' system-rules' , version : ' 1.16.0'
43+ testImplementation group : ' org.hamcrest' , name : ' hamcrest-junit' , version : ' 1.0.0.1'
44+ testImplementation group : ' com.github.stefanbirkner' , name : ' system-rules' , version : ' 1.16.0'
4545
46- compile group : ' com.google.inject' , name : ' guice' , version : ' 4.1.0'
47- compile group : ' io.dropwizard.metrics' , name : ' metrics-core' , version : ' 3.1.2'
48- compile group : ' com.github.davidb' , name : ' metrics-influxdb' , version : ' 0.8.2'
49- compile group : ' com.carrotsearch' , name : ' java-sizeof' , version : ' 0.0.5'
46+ implementation group : ' com.google.inject' , name : ' guice' , version : ' 4.1.0'
47+ implementation group : ' io.dropwizard.metrics' , name : ' metrics-core' , version : ' 3.1.2'
48+ implementation group : ' com.github.davidb' , name : ' metrics-influxdb' , version : ' 0.8.2'
49+ implementation group : ' com.carrotsearch' , name : ' java-sizeof' , version : ' 0.0.5'
5050 // http
51- compile ' org.eclipse.jetty:jetty-server:9.4.53.v20231009'
52- compile ' org.eclipse.jetty:jetty-servlet:9.4.53.v20231009'
53- compile ' com.alibaba:fastjson:1.2.83'
51+ implementation ' org.eclipse.jetty:jetty-server:9.4.53.v20231009'
52+ implementation ' org.eclipse.jetty:jetty-servlet:9.4.53.v20231009'
53+ implementation ' com.alibaba:fastjson:1.2.83'
5454 // end http
5555
5656 // https://mvnrepository.com/artifact/com.github.briandilley.jsonrpc4j/jsonrpc4j
57- compile group : ' com.github.briandilley.jsonrpc4j' , name : ' jsonrpc4j' , version : ' 1.6'
57+ implementation group : ' com.github.briandilley.jsonrpc4j' , name : ' jsonrpc4j' , version : ' 1.6'
5858
5959 // https://mvnrepository.com/artifact/javax.portlet/portlet-api
6060 compileOnly group : ' javax.portlet' , name : ' portlet-api' , version : ' 3.0.1'
6161
62- compile " io.vavr:vavr:0.9.2"
63- compile group : ' org.pf4j' , name : ' pf4j' , version : ' 2.5.0'
62+ implementation " io.vavr:vavr:0.9.2"
63+ implementation group : ' org.pf4j' , name : ' pf4j' , version : ' 2.5.0'
6464
6565 testImplementation group : ' org.springframework' , name : ' spring-test' , version : ' 5.2.0.RELEASE'
6666 testImplementation group : ' org.springframework' , name : ' spring-web' , version : ' 5.2.0.RELEASE'
6767
68- compile group : ' org.zeromq' , name : ' jeromq' , version : ' 0.5.3'
69- compile project(" :chainbase" )
70- compile project(" :protocol" )
71- compile project(" :actuator" )
72- compile project(" :consensus" )
68+ implementation group : ' org.zeromq' , name : ' jeromq' , version : ' 0.5.3'
69+ api project(" :actuator" )
70+ api project(" :consensus" )
7371}
7472
7573check. dependsOn ' lint'
@@ -152,9 +150,11 @@ def binaryRelease(taskName, jarName, mainClass) {
152150 from(sourceSets. main. output) {
153151 include " /**"
154152 }
155-
153+ // explicit_dependency
154+ dependsOn (project(' :actuator' ). jar, project(' :consensus' ). jar, project(' :chainbase' ). jar,
155+ project(' :crypto' ). jar, project(' :common' ). jar, project(' :protocol' ). jar)
156156 from {
157- configurations. compile . collect {
157+ configurations. runtimeClasspath . collect {
158158 it. isDirectory() ? it : zipTree(it)
159159 }
160160 }
@@ -179,7 +179,7 @@ def createScript(project, mainClass, name) {
179179 outputDir = new File (project. buildDir, ' scripts' )
180180 mainClassName = mainClass
181181 applicationName = name
182- classpath = project. tasks[JavaPlugin . JAR_TASK_NAME ]. outputs. files + project. configurations. runtime
182+ classpath = project. tasks[JavaPlugin . JAR_TASK_NAME ]. outputs. files + project. configurations. runtimeClasspath
183183// defaultJvmOpts = ['-XX:+UseConcMarkSweepGC',
184184// '-XX:+PrintGCDetails',
185185// '-Xloggc:./gc.log',
0 commit comments