@@ -3,36 +3,36 @@ plugins {
33 id ' maven-publish'
44 id ' signing'
55 id ' jacoco'
6- id ' com.diffplug.spotless' version ' 5.6.1 '
6+ id ' com.diffplug.spotless' version ' 6.25.0 '
77}
88
99group = ' org.arkecosystem'
1010version = ' 2.0.0'
1111
12- sourceCompatibility = 1.8
13- targetCompatibility = 1.8
12+ java {
13+ sourceCompatibility = JavaVersion . VERSION_1_8
14+ targetCompatibility = JavaVersion . VERSION_1_8
15+ withJavadocJar()
16+ withSourcesJar()
17+ }
1418
1519repositories {
1620 mavenLocal()
1721 mavenCentral()
1822}
1923
2024dependencies {
21- implementation group : ' org.bitcoinj' , name : ' bitcoinj-core' , version : ' 0.15.8'
22- implementation group : ' com.google.code.gson' , name : ' gson' , version : ' 2.8.6'
23- implementation ' com.google.guava:guava:30.1.1-jre'
24-
25- testCompileOnly ' org.slf4j:slf4j-api:1.7.32'
26- testRuntimeOnly ' org.slf4j:slf4j-simple:1.7.32'
27- testImplementation ' org.hamcrest:hamcrest-library:2.2'
28- testImplementation ' org.junit.jupiter:junit-jupiter-api:5.7.2'
29- testCompileOnly ' org.junit.jupiter:junit-jupiter-params:5.7.2'
30- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.7.2'
31- }
32-
33- java {
34- withJavadocJar()
35- withSourcesJar()
25+ implementation ' org.bitcoinj:bitcoinj-core:0.16.3'
26+ implementation ' com.google.code.gson:gson:2.11.0'
27+ implementation ' com.google.guava:guava:30.2.0-jre'
28+
29+ testImplementation ' org.slf4j:slf4j-api:2.0.13'
30+ testRuntimeOnly ' org.slf4j:slf4j-simple:2.0.13'
31+ testImplementation ' org.hamcrest:hamcrest-library:3.0'
32+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.10.3'
33+ testImplementation ' org.junit.jupiter:junit-jupiter-params:5.10.3'
34+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.10.3'
35+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.10.3'
3636}
3737
3838test {
@@ -51,33 +51,33 @@ jacocoTestReport {
5151
5252spotless {
5353 java {
54- target fileTree(projectDir) {
55- include ' src/main/**/*.java'
56- include ' src/test/**/*.java'
57- exclude ' **/build/**'
58- }
59- googleJavaFormat(' 1.1' ). aosp()
54+ target ' src/**/*.java'
55+ googleJavaFormat(' 1.17.0' ). aosp()
6056 }
6157}
6258
63- task formatCode (dependsOn : [' spotlessApply' ])
59+ tasks. register(' formatCode' ) {
60+ dependsOn ' spotlessApply'
61+ }
6462
65- task fatJar (type : Jar ) {
66- manifest. from jar. manifest
63+ tasks. register(' fatJar' , Jar ) {
64+ manifest {
65+ attributes ' Main-Class' : ' com.example.Main'
66+ }
6767 from {
6868 configurations. runtimeClasspath. collect { it. isDirectory() ? it : zipTree(it) }
6969 } {
70- exclude " META-INF/*.SF"
71- exclude " META-INF/*.DSA"
72- exclude " META-INF/*.RSA"
70+ exclude ' META-INF/*.SF'
71+ exclude ' META-INF/*.DSA'
72+ exclude ' META-INF/*.RSA'
7373 }
7474 with jar
7575}
7676
7777build. dependsOn ' spotlessApply'
7878
7979wrapper {
80- gradleVersion = ' 7.2 '
80+ gradleVersion = ' 8.1.1 '
8181}
8282
8383publishing {
0 commit comments