-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
151 lines (127 loc) · 4.07 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
plugins {
id 'com.google.protobuf' version '0.8.7'
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'maven'
apply plugin: 'com.google.protobuf'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
signing {
sign configurations.archives
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
javadoc {
options.encoding = 'UTF-8'
}
artifacts {
archives sourcesJar
archives javadocJar
}
group = 'io.yggdrash'
version = '0.10.4-beta'
ext {
grpcVersion = '1.20.0'
protobufVersion = '3.7.1'
levelDBVersion = '0.11'
ehcacheVersion = '3.7.1'
scastleVersion = '1.58.0.0'
commonsCodecVersion = '1.11'
commonsIOVersion = '2.6'
gsonVersion = '2.8.5'
jsonSimpleVersion = '1.1'
jacksonVersion = '2.9.8'
typesafeVersion = '1.3.3'
logbackVersion = '1.2.3'
annotationVersion = '1.3.2'
assertjVersion = '3.11.1'
commonLangVersion = '3.8.1'
collectionsVersion = '4.2'
logbackEsAppenderVersion = '1.6'
logbackJinoVersion = '3.0.12'
equinoxVersion = '3.13.0.v20180226-1711'
set('elasticsearch.version', '7.0.1')
}
dependencies {
compile "io.yggdrash:contract-core:0.10.2-beta"
compile "io.yggdrash:yggdrash-common:0.10.1-beta"
compile 'com.rabbitmq:amqp-client:5.7.3'
compile "io.grpc:grpc-services:${grpcVersion}"
compile "io.grpc:grpc-netty:${grpcVersion}"
compile "com.google.protobuf:protobuf-java-util:${protobufVersion}"
compile "org.ehcache:ehcache:${ehcacheVersion}"
compile "com.typesafe:config:${typesafeVersion}"
compile 'org.beryx:text-io:3.3.0'
compileOnly "javax.annotation:javax.annotation-api:${annotationVersion}"
testCompile "org.mockito:mockito-core:1.10.19"
testCompile "org.assertj:assertj-core:${assertjVersion}"
}
protobuf {
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
}
}
protoc {
artifact = "com.google.protobuf:protoc:${protobufVersion}"
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
uploadArchives {
repositories {
mavenDeployer {
// Sign POM
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
// Destination
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
// Add required metadata to POM
pom.project {
name 'Yggdrash Core Library'
packaging 'jar'
description 'Yggdrash Core Library'
url 'https://yggdrash.io'
scm {
connection 'scm:git:git://github.com/yggdrash/yggdrash-core.git'
developerConnection 'scm:git:ssh://github.com/yggdrash/yggdrash-core.git'
url 'https://github.com/yggdrash/yggdrash-core/tree/master'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'yggdrash'
name 'YGGDRASH DEVELOP TEAM'
email 'dev@yggdrash.io'
organization 'yggdrash'
organizationUrl 'http://yggdrash.io'
}
}
}
}
}
}