@@ -38,38 +38,38 @@ task version(type: Exec) {
38
38
39
39
dependencies {
40
40
// local libraries
41
- compile fileTree(dir : ' libs' , include : ' *.jar' )
41
+ implementation fileTree(dir : ' libs' , include : ' *.jar' )
42
42
// 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'
45
45
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'
50
50
// 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'
54
54
// end http
55
55
56
56
// 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'
58
58
59
59
// https://mvnrepository.com/artifact/javax.portlet/portlet-api
60
60
compileOnly group : ' javax.portlet' , name : ' portlet-api' , version : ' 3.0.1'
61
61
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'
64
64
65
65
testImplementation group : ' org.springframework' , name : ' spring-test' , version : ' 5.2.0.RELEASE'
66
66
testImplementation group : ' org.springframework' , name : ' spring-web' , version : ' 5.2.0.RELEASE'
67
67
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(" :chainbase" )
70
+ api project(" :protocol" )
71
+ api project(" :actuator" )
72
+ api project(" :consensus" )
73
73
}
74
74
75
75
check. dependsOn ' lint'
@@ -154,7 +154,7 @@ def binaryRelease(taskName, jarName, mainClass) {
154
154
}
155
155
156
156
from {
157
- configurations. compile . collect {
157
+ configurations. runtimeClasspath . collect {
158
158
it. isDirectory() ? it : zipTree(it)
159
159
}
160
160
}
@@ -179,7 +179,7 @@ def createScript(project, mainClass, name) {
179
179
outputDir = new File (project. buildDir, ' scripts' )
180
180
mainClassName = mainClass
181
181
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
183
183
// defaultJvmOpts = ['-XX:+UseConcMarkSweepGC',
184
184
// '-XX:+PrintGCDetails',
185
185
// '-Xloggc:./gc.log',
0 commit comments