-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.gradle
121 lines (105 loc) · 3.52 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.zksync'
version System.getenv('VERSION')
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'zksync'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'ZkSync SDK'
description = 'This repository provides a Java SDK for zkSync developers, which can be used either on PC or Android.'
url = 'https://github.com/zksync-sdk/zksync-java'
organization {
name = 'Matter Labs'
url = 'https://matter-labs.io'
}
licenses {
license {
name = 'MIT License'
url = 'https://www.mit.edu/~amini/LICENSE.md'
}
}
developers {
developer {
id = 'mfischuk'
name = 'Maxim Fischuk'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/zksync-sdk/zksync-java'
url = 'https://github.com/zksync-sdk/zksync-java'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username findProperty("sonatypeUsername")
password findProperty("sonatypePassword")
}
}
}
}
signing {
def signingKeyId = findProperty("signingKeyId")
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications.mavenJava
}
dependencies {
// === Code Generation ===
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
// === DTO ===
implementation('org.modelmapper:modelmapper:1.1.0')
// === Utils ===
implementation('org.apache.commons:commons-lang3:3.7')
implementation('commons-validator:commons-validator:1.6')
implementation('org.jsoup:jsoup:1.11.3')
// === Http Client ===
implementation 'com.squareup.okhttp3:okhttp:4.8.0'
// === Web3 client ===
implementation 'org.web3j:core:5.0.0'
// === For Eth Signing ===
implementation 'org.web3j:crypto:5.0.0'
// === For Zk Signing ===
implementation 'io.zksync.sdk:zkscrypto:0.0.5.5'
implementation 'net.java.dev.jna:jna:5.6.0'
implementation 'org.scijava:native-lib-loader:2.3.4'
// === Test dependencies ===
testImplementation 'junit:junit:4.13.1'
testImplementation "org.mockito:mockito-inline:+"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
}