-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (48 loc) · 1.36 KB
/
build.gradle
File metadata and controls
54 lines (48 loc) · 1.36 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
plugins {
id 'com.android.library'
id 'maven-publish'
}
android {
compileSdk 35
namespace "ai.elimu.analytics.utils"
defaultConfig {
minSdkVersion 24
targetSdkVersion 33
versionName "3.1.27"
setProperty("archivesBaseName", "utils-${versionName}")
}
buildTypes {
release {
minifyEnabled false
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}
dependencies {
implementation 'com.github.elimu-ai:model:model-2.0.74' // See https://jitpack.io/#elimu-ai/model
testImplementation 'junit:junit:4.13.2'
}
// See https://docs.gradle.org/current/dsl/org.gradle.api.publish.maven.MavenPublication.html
// Usage: ./gradlew clean build publish -PmavenUsername=***** -PmavenPassword=*****
publishing {
publications {
release(MavenPublication) {
groupId 'ai.elimu.analytics'
artifactId 'utils'
version '3.1.27'
artifact("${buildDir}/outputs/aar/utils-${version}-release.aar")
}
}
repositories {
maven {
credentials(PasswordCredentials)
url "https://maven.pkg.github.com/elimu-ai/analytics"
}
}
}
tasks.named("publishReleasePublicationToMavenLocal") {
mustRunAfter(":utils:bundleReleaseAar")
}