forked from Ahmad-Hamwi/TabSync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (75 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.32"
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' // NEW
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.10.2' // NEW
}
}
allprojects {
repositories {
google()
jcenter()
}
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
publishing {
repositories {
maven {
def releasesRepoUrl = "$buildDir/repos/releases"
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
}
}
plugins.withId("com.vanniktech.maven.publish.base") {
group = "io.github.ahmad-hamwi"
version = "1.0.1"
mavenPublishing {
publishToMavenCentral("S01")
// Will only apply to non snapshot builds.
// Uses credentials as described above, supports both regular and in memory signing.
signAllPublications()
pom {
name = "TabSync"
description = "A lightweight synchronizer between Android's TabLayout and RecyclerView."
inceptionYear = "2021"
url = "https ://github.com/Ahmad-Hamwi/TabSync/"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "Ahmad-Hamwi"
name = "Ahmad Hamwi"
url = "https://github.com/Ahmad-Hamwi/"
}
}
scm {
url = "https://github.com/Ahmad-Hamwi/TabSync/"
connection = "scm:git:git://github.com/Ahmad-Hamwi/TabSync.git"
developerConnection = "scm:git:ssh://[email protected]/Ahmad-Hamwi/TabSync.git"
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}