-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (80 loc) · 2.5 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
plugins {
id('java')
id('maven-publish')
id('com.google.protobuf') version '0.9.4'
}
group 'org.medibloc.panacea'
version '2.2.0'
sourceSets {
main {
proto {
srcDir "src/main/resources/proto"
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.bitcoinj:bitcoinj-core:0.16.2") {
exclude group: "com.google.protobuf", module: "protobuf-javalite"
}
implementation("org.apache.commons:commons-lang3:3.14.0")
implementation("org.apache.commons:commons-collections4:4.4")
implementation("commons-codec:commons-codec:1.16.1")
implementation("commons-net:commons-net:3.10.0")
implementation("com.fasterxml.jackson.core:jackson-core:2.16.2")
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.2")
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation 'io.grpc:grpc-protobuf:1.62.2'
implementation 'io.grpc:grpc-stub:1.62.2'
implementation 'io.grpc:grpc-netty-shaded:1.62.2'
testImplementation 'junit:junit:4.13.2'
}
protobuf {
protoc {
// The artifact spec for the Protobuf Compiler
artifact = 'com.google.protobuf:protoc:3.25.3'
}
plugins {
// Optional: an artifact spec for a protoc plugin, with "grpc" as
// the identifier, which can be referred to in the "plugins"
// container of the "generateProtoTasks" closure.
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.62.2'
}
}
generateProtoTasks {
ofSourceSet('main').configureEach {
plugins {
// Apply the "grpc" plugin whose spec is defined above, without
// options. Note the braces cannot be omitted, otherwise the
// plugin will not be added. This is because of the implicit way
// NamedDomainObjectContainer binds the methods.
grpc {}
}
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
publishing {
repositories {
maven {
url = uri("https://maven.pkg.github.com/medibloc/panacea-java")
credentials {
username = System.getenv("GPR_USER")
password = System.getenv("GPR_API_KEY")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}