This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
executable file
·85 lines (73 loc) · 2.38 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.20'
ext.gradle_version = '3.3.0'
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
}
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'java-library'
group = "com.subkhansarif.libs"
def versi = "1.2.0"
version = versi
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
publications = ['bottomNavbar']
pkg {
repo = 'maven'
name = "bottomnavbar"
userOrg = user
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/subsub/lottiebottomnavbar.git'
version {
name = versi
desc = "A customisable bottom navbar with Lottie (c) capability"
released = new Date()
vcsTag = versi
}
}
}
publishing {
publications {
bottomNavbar(MavenPublication) {
groupId group
artifactId "bottomnavbar"
version versi
pom.withXml {
// Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
configurations.implementation.allDependencies.each {
// Ensure dependencies such as fileTree are not included.
if (it.name != 'unspecified') {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}
task customClean(type: Delete) {
delete rootProject.buildDir
}
clean.dependsOn customClean