-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
128 lines (114 loc) · 3.79 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
buildscript {
ext.kotlin_version = '1.2.60'
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
// This version is dependent on what version of gradle you are running
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}
plugins {
id 'java-library'
id 'com.stehno.natives' version '0.3.1'
id "com.jfrog.bintray" version "1.7"
id 'maven'
id 'maven-publish'
}
group 'com.waykichain'
version '2.0'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
apply plugin: "com.stehno.natives"
apply plugin: "kotlin"
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'maven-publish'
// In this section you declare where to find the dependencies of your project
repositories {
jcenter()
mavenCentral()
}
jar {
baseName = 'wicc-wallet-utils'
version = '2.0.8'
manifestContentCharset 'utf-8'
metadataCharset 'utf-8'
manifest {
attributes "Main-Class": "com.waykichain.wallet"
}
if (project.hasProperty("wiccBuildJar")) {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile group: 'org.web3j', name: 'crypto', version: '3.3.1'
compile 'com.madgag.spongycastle:core:1.58.0.0'
compile 'com.lambdaworks:scrypt:1.4.0'
compile 'com.google.guava:guava:24.0-android'
compile 'com.google.protobuf:protobuf-java:3.5.1'
compile 'com.squareup.okhttp3:okhttp:3.9.1'
compile 'net.jcip:jcip-annotations:1.0'
compileOnly 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
compile 'com.google.guava:guava:21.0'
compile 'org.slf4j:slf4j-api:1.7.25'
testImplementation 'junit:junit:4.12'
testImplementation 'org.easymock:easymock:3.2'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.5.2'
testImplementation 'org.slf4j:slf4j-jdk14:1.7.25'
testImplementation 'com.h2database:h2:1.3.167'
testImplementation 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
testImplementation 'junit:junit:4.12'
testCompile 'junit:junit:4.12'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
publications {
Production(MavenPublication) {
// artifact("$buildDir/outputs/aar/${this.pkgArtifactId}-release.aar")
artifacts {
archives sourcesJar
}
version this.version
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['Production']
configurations = ['archives']
pkg {
userOrg = 'waykichain'
repo = 'utils'
name = 'wicc-wallet-utils'
description = "Waykichain Wallet Utils SDK"
publicDownloadNumbers = true
licenses = ['MIT']
vcsUrl = 'https://github.com/WaykiChain/wicc-wallet-utils-kotlin.git'
version {
name = this.version
desc = "wicc-wallet-utils SDK ${this.version}"
released = new Date()
vcsTag = 'v2.0.8'
}
}
}