-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathbuild.gradle
More file actions
104 lines (93 loc) · 3.14 KB
/
build.gradle
File metadata and controls
104 lines (93 loc) · 3.14 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
plugins {
id "com.android.library"
id "maven-publish"
id "kotlin-android"
id "com.vanniktech.maven.publish" version "0.34.0"
}
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
ext {
mGroupId = "info.appdevnext"
mArtifactId = "chart"
mVersionName = getTag()
mLibraryName = "Android Chart"
mLibraryDescription = "A powerful Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, dragging and animations"
}
android {
namespace "com.github.mikephil.charting"
defaultConfig {
minSdkVersion 21
compileSdk 35
targetSdkVersion 35
// VERSION_NAME no longer available as of 4.1
// https://issuetracker.google.com/issues/158695880
buildConfigField "String", "VERSION_NAME", "\"${getTag()}\""
consumerProguardFiles "proguard-lib.pro"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
minifyEnabled false
}
}
buildFeatures {
buildConfig = true
}
testOptions {
unitTests.returnDefaultValues = true // this prevents "not mocked" error
}
}
dependencies {
implementation "androidx.annotation:annotation:1.9.1"
implementation "androidx.core:core:1.16.0"
implementation "androidx.activity:activity-ktx:1.10.1"
testImplementation "junit:junit:4.13.2"
}
//tasks.register("androidSourcesJar", Jar) {
// archiveClassifier.set("sources")
// from android.sourceSets.main.java.srcDirs
//}
group = "info.mxtracks"
version = "${getTag()}"
println "Build version $version"
mavenPublishing {
pom {
name = "Android Chart"
description = "A powerful Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, dragging and animations"
inceptionYear = "2022"
url = "https://github.com/AppDevNext/AndroidChart/"
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 = "AppDevNext"
name = "AppDevNext"
url = "https://github.com/AppDevNext/"
}
}
scm {
url = "https://github.com/AppDevNext/AndroidChart/"
connection = "scm:git:git://github.com/AppDevNext/AndroidChart.git"
developerConnection = "scm:git:ssh://git@github.com/AppDevNext/AndroidChart.git"
}
}
// Github packages
repositories {
maven {
version = version + "-SNAPSHOT"
name = "GitHubPackages"
url = "https://maven.pkg.github.com/AppDevNext/AndroidChart"
credentials {
username = System.getenv("GITHUBACTOR")
password = System.getenv("GITHUBTOKEN")
}
}
}
}