-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
93 lines (83 loc) · 2.39 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group 'party.52it'
version '1.0.0'
sourceCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
//添加UTF-8编码否则注释可能JAVADOC文档可能生成不了
javadoc {
options{
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
failOnError false
links "http://docs.oracle.com/javase/7/docs/api"
}
}
repositories {
mavenCentral()
}
publishing{
publications{
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'ETHLiteForJava'
description = 'A eth library for java'
url = 'https://github.com/wypeng2012/ETHLiteForJava/tree/master'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'Jerry Wang'
email = '[email protected]'
organization = '52it'
organizationUrl = 'https://52it.party/'
}
}
scm {
connection = 'scm:git:[email protected]:wypeng2012/ETHLiteForJava.git'
developerConnection = 'scm:git:[email protected]:wypeng2012/ETHLiteForJava.git'
url = 'https://github.com/wypeng2012/ETHLiteForJava/tree/master'
}
}
}
}
repositories{
maven{
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation 'org.bouncycastle:bcprov-jdk15on:1.60'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
}