11import java.text.SimpleDateFormat
22
33plugins {
4- id ' org.jetbrains.kotlin.jvm' version ' 1.3.72 '
4+ id ' org.jetbrains.kotlin.jvm' version ' 1.6.21 '
55 id " application"
66 id " distribution"
77 id " idea"
@@ -19,7 +19,7 @@ mainClassName = 'org.web3j.console.Web3j'
1919applicationName = ' web3j'
2020
2121ext {
22- web3jVersion = ' 4.9.4 '
22+ web3jVersion = ' 4.10.1 '
2323 picocli = ' 4.6.0'
2424 slf4jVersion = ' 1.7.30'
2525 junitVersion = ' 5.8.2'
@@ -61,6 +61,7 @@ apply {
6161repositories {
6262 jcenter()
6363 mavenCentral()
64+ mavenLocal()
6465 maven { url " https://dl.bintray.com/ethereum/maven/" }
6566 maven { url " https://oss.sonatype.org/content/repositories/snapshots/" }
6667 maven { url ' https://repo.gradle.org/gradle/libs-releases' }
@@ -153,13 +154,13 @@ sourceSets {
153154}
154155
155156compileKotlin {
156- kotlinOptions. jvmTarget = " 1.8 "
157+ kotlinOptions. jvmTarget = " 17 "
157158}
158159compileTestKotlin {
159- kotlinOptions. jvmTarget = " 1.8 "
160+ kotlinOptions. jvmTarget = " 17 "
160161}
161162
162- sourceCompatibility = 1.8
163+ sourceCompatibility = 17
163164
164165def generatedResources = " $buildDir /generated-resources/main"
165166
@@ -179,3 +180,6 @@ task generateVersionProperties {
179180 generated. append(" timestamp=${ System.currentTimeMillis()} \n " )
180181 }
181182}
183+
184+ tasks. named(" spotlessJava" ). configure { dependsOn(" javadoc" ," sourcesJar" ," compileTestJava" ," compileTestKotlin" ) }
185+ tasks. named(" spotlessKotlin" ). configure { dependsOn(" compileKotlin" ," sourcesJar" ," compileTestKotlin" ) }
0 commit comments