Skip to content

Commit ba35322

Browse files
committed
upgrade gradle
1 parent a2556d8 commit ba35322

File tree

2 files changed

+20
-25
lines changed

2 files changed

+20
-25
lines changed

build.gradle

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,30 @@ 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 '5.14.3'
77
}
88

99
group = 'org.arkecosystem'
1010
version = '2.0.0'
1111

12-
sourceCompatibility = 1.8
13-
targetCompatibility = 1.8
12+
sourceCompatibility = '1.8'
13+
targetCompatibility = '1.8'
1414

1515
repositories {
1616
mavenLocal()
1717
mavenCentral()
18-
flatDir {
19-
dirs 'libs'
20-
}
2118
}
2219

2320
dependencies {
24-
implementation group: 'org.bitcoinj', name: 'bitcoinj-core', version: '0.15.8'
25-
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
21+
implementation 'org.bitcoinj:bitcoinj-core:0.16.3'
22+
implementation 'com.google.code.gson:gson:2.8.6'
2623
implementation 'com.google.guava:guava:30.1.1-jre'
27-
// Compiled from https://gitlab.com/bitcoinj/secp256k1-jdk
28-
implementation name: 'secp256k1-api-0.0.1'
2924

30-
testCompileOnly 'org.slf4j:slf4j-api:1.7.32'
25+
testImplementation 'org.slf4j:slf4j-api:1.7.32'
3126
testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.32'
3227
testImplementation 'org.hamcrest:hamcrest-library:2.2'
3328
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
34-
testCompileOnly 'org.junit.jupiter:junit-jupiter-params:5.7.2'
29+
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.7.2'
3530
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
3631
}
3732

@@ -56,33 +51,33 @@ jacocoTestReport {
5651

5752
spotless {
5853
java {
59-
target fileTree(projectDir) {
60-
include 'src/main/**/*.java'
61-
include 'src/test/**/*.java'
62-
exclude '**/build/**'
63-
}
54+
target 'src/**/*.java'
6455
googleJavaFormat('1.1').aosp()
6556
}
6657
}
6758

68-
task formatCode(dependsOn: ['spotlessApply'])
59+
tasks.register('formatCode') {
60+
dependsOn 'spotlessApply'
61+
}
6962

70-
task fatJar(type: Jar) {
71-
manifest.from jar.manifest
63+
tasks.register('fatJar', Jar) {
64+
manifest {
65+
attributes 'Main-Class': 'com.example.Main'
66+
}
7267
from {
7368
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
7469
} {
75-
exclude "META-INF/*.SF"
76-
exclude "META-INF/*.DSA"
77-
exclude "META-INF/*.RSA"
70+
exclude 'META-INF/*.SF'
71+
exclude 'META-INF/*.DSA'
72+
exclude 'META-INF/*.RSA'
7873
}
7974
with jar
8075
}
8176

8277
build.dependsOn 'spotlessApply'
8378

8479
wrapper {
85-
gradleVersion = '7.2'
80+
gradleVersion = '8.1.1'
8681
}
8782

8883
publishing {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)