-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
105 lines (88 loc) · 2.8 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
plugins {
id 'java'
id 'maven'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.4.30'
}
group 'com.github.theapache64'
version '0.0.9'
repositories {
jcenter()
mavenCentral()
}
test {
useJUnitPlatform()
environment("PLAY_API_GOOGLE_USERNAME", System.getenv("PLAY_API_GOOGLE_USERNAME"))
environment("PLAY_API_GOOGLE_PASSWORD", System.getenv("PLAY_API_GOOGLE_PASSWORD"))
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
// Akdeniz Deps
implementation 'com.google.protobuf:protobuf-java:3.14.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.apache.httpcomponents:httpcore:4.4.14'
// Bouncy Castle Provider : The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms.
// This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography
// APIs for JDK 1.5 and up.
implementation 'org.bouncycastle:bctls-jdk15on:1.57'
// Kotlinx Coroutines Core : Coroutines support libraries for Kotlin
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3'
implementation 'org.junit.jupiter:junit-jupiter:5.4.2'
// Expekt : An assertion library for Kotlin
testImplementation 'com.theapache64:expekt:0.0.1'
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "shifarshifz"
name "shifarshifz"
email "theapache64@gmail.com"
}
}
scm {
url "https://github.com/theapache64/google-play-api"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId 'com.github.theapache64'
artifactId 'google-play-api'
version "$version"
pom.withXml {
def root = asNode()
root.appendNode('description', 'To access play store')
root.appendNode('name', 'google-play-api')
root.appendNode('url', 'https://github.com/theapache64/google-play-api')
root.children().last() + pomConfig
}
}
}
}