This repository has been archived by the owner on Sep 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
134 lines (113 loc) · 4.17 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
/*
* Copyright (c) 2017 Armel Soro
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
final homePath = System.properties['user.home']
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:3.2.0-alpha04'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
apply plugin: 'java'
apply plugin: "kotlin"
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
group = 'org.rm3l'
version = '2.5.0-maoni_6.0.0'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'org.rm3l:maoni-common:6.0.0'
//We are interacting with Android components for sending emails
compileOnly ('com.google.android:android:4.1.1.4') {
exclude group: 'org.json', module: 'json'
}
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation 'khttp:khttp:0.1.0'
implementation 'org.jetbrains.anko:anko-sdk15:0.10.4'
}
task generateSourcesJar(type: Jar) {
classifier 'sources'
}
task generateJavadocs(type: Javadoc) {
failOnError false
}
task generateJavadocsJar(type: Jar) {
from generateJavadocs.destinationDir
classifier 'javadoc'
}
generateJavadocsJar.dependsOn generateJavadocs
artifacts {
archives generateJavadocsJar
archives generateSourcesJar
}
bintray {
//Attempt to read keystore.properties file, if any first
final propsFile = new File(homePath.toString() + "/.droid/", "maoni.bintray.properties")
if (propsFile.exists()) {
printf("[Bintray] Using properties file located at " + propsFile.absolutePath)
final props = new Properties()
props.load(new FileInputStream(propsFile))
user = props['user']
key = props['key']
} else {
user = ""
key = ""
}
publish = true //If version should be auto published after an upload
pkg {
repo = 'maven'
name = 'org.rm3l:maoni-jira'
labels = ['maoni', 'android', 'feedback', 'android-lib', 'comments', 'review', 'bug', 'issue']
//noinspection GroovyAssignabilityCheck
version {
name = '2.5.0-maoni_6.0.0'
desc = 'Maoni Android Library - Github Handler'
released = new Date()
vcsTag = '2.5.0-maoni_6.0.0'
}
publicDownloadNumbers = true
licenses = ['MIT']
vcsUrl = 'https://github.com/rm3l/maoni-jira.git'
websiteUrl = 'https://github.com/rm3l/maoni-jira'
issueTrackerUrl = 'https://github.com/rm3l/maoni-jira/issues'
}
configurations = ['archives']
}