1
1
import java.text.SimpleDateFormat
2
2
3
- apply plugin : ' org.ajoberstar.git-publish'
3
+ plugins {
4
+ id ' java-library'
5
+ id ' org.ajoberstar.git-publish'
6
+ }
4
7
5
8
6
9
description ' web3j is a lightweight Java library for integration with Ethereum clients'
7
10
8
11
dependencies {
9
- compile project(' :abi' ),
12
+ api project(' :abi' ),
10
13
project(' :crypto' ),
11
14
project(' :tuples' ),
12
15
" com.github.jnr:jnr-unixsocket:$jnr_unixsocketVersion " ,
@@ -16,7 +19,7 @@ dependencies {
16
19
" org.java-websocket:Java-WebSocket:$javaWebSocketVersion " ,
17
20
" com.fasterxml.jackson.core:jackson-databind:$jacksonVersion " ,
18
21
" org.slf4j:slf4j-api:$slf4jVersion "
19
- testCompile project(path : ' :crypto' , configuration : ' testArtifacts' ),
22
+ testImplementation project(path : ' :crypto' , configuration : ' testArtifacts' ),
20
23
" nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion " ,
21
24
" ch.qos.logback:logback-classic:$logbackVersion "
22
25
}
@@ -78,3 +81,6 @@ classes { dependsOn createProperties }
78
81
configurations { testArtifacts. extendsFrom testRuntime }
79
82
80
83
artifacts { testArtifacts testsJar }
84
+
85
+ tasks. named(" spotlessJava" ). configure { dependsOn(" compileJava" , " compileTestJava" , " processResources" , " processTestResources" , " spotlessGroovyGradle" ," javadoc" ) }
86
+ tasks. named(" spotlessKotlin" ). configure { dependsOn(" compileJava" , " compileTestJava" , " processResources" , " processTestResources" ," spotlessJava" ," spotlessGroovyGradle" ," javadoc" ) }
0 commit comments