-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
86 lines (74 loc) · 2.25 KB
/
build.gradle
File metadata and controls
86 lines (74 loc) · 2.25 KB
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
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.2.0'
ext.dokka_version = '2.0.0'
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.11.1'
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:2.0.0"
}
}
ext {
// Android
androidMinSdkVersion = 21
androidTargetSdkVersion = 36
androidCompileSdkVersion = 36
versionName = project.version
versionCode = buildVersionCode()
developerId = 'motorro'
developerName = 'Nikolai Kotchetkov'
developerEmail = 'motorro@gmail.com'
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}")
}
}
def ossrhUsername = ext['ossrhUsername']
def ossrhPassword = ext['ossrhPassword']
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username=ossrhUsername
password=ossrhPassword
}
}
}