-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
84 lines (73 loc) · 2.19 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
apply plugin: 'org.ajoberstar.grgit'
apply from: 'gradle/versioning.gradle'
apply from: 'gradle/maven-publish-config.gradle'
apply plugin: 'io.github.gradle-nexus.publish-plugin'
buildscript {
ext.kotlin_version = '2.1.0'
ext.dokka_version = '1.9.20'
repositories {
google()
mavenCentral()
maven {
name = 'ajoberstar-backup'
url = 'https://ajoberstar.github.io/bintray-backup/'
}
maven {
url="https://plugins.gradle.org/m2/"
}
maven {
url="https://dl.bintray.com/kotlin/dokka"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.ajoberstar.grgit:grgit-gradle:5.3.0'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath "io.github.gradle-nexus:publish-plugin:1.3.0"
}
}
ext {
// Android
androidBuildToolsVersion = '34.0.0'
androidMinSdkVersion = 21
androidTargetSdkVersion = 35
androidCompileSdkVersion = 35
versionName = project.version
versionCode = buildVersionCode()
developerId = 'motorro'
developerName = 'Nikolai Kotchetkov'
developerEmail = '[email protected]'
projectScm = 'https://github.com/motorro/AppUpdateWrapper.git'
projectUrl = 'https://github.com/motorro/AppUpdateWrapper'
}
setVersion(buildVersionName())
group = "com.motorro.appupdatewrapper"
allprojects {
repositories {
google()
mavenCentral()
maven {
url="https://plugins.gradle.org/m2/"
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
tasks.register('displayVersion', Task) {
description 'Display application version name'
doLast {
println("Project version: ${project.version}")
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = ossrhUsername
password = ossrhPassword
}
}
}