Skip to content

Commit

Permalink
Update library gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-yazdanmanesh committed Jun 11, 2023
1 parent e62d762 commit 92ae3f0
Showing 1 changed file with 24 additions and 33 deletions.
57 changes: 24 additions & 33 deletions MPChartLib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
plugins {
id 'com.android.library'
id 'maven-publish'
id "com.vanniktech.maven.publish" version "0.25.2"
id 'org.jetbrains.kotlin.android'
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'
group = 'com.github.Amir-yazdanmanesh'
version = '3.1.0.16'

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release
// You can then customize attributes of the publication as shown below.
groupId = 'com.github.Amir-yazdanmanesh'
artifactId = 'AndroidChart'
version = '3.1.0.16'
}

group='com.github.philjay'
}
}
}

android {
compileSdkVersion 33
defaultConfig {
minSdkVersion 14
targetSdkVersion 33
versionCode 3
versionName '3.1.0'
versionCode 4
versionName '3.1.1'
}
buildTypes {
release {
Expand All @@ -29,28 +43,5 @@ android {
dependencies {
implementation 'androidx.annotation:annotation:1.6.0'
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.core:core-ktx:1.10.1'
testImplementation 'junit:junit:4.13.2'
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
options.charSet = 'UTF-8'
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}
}

0 comments on commit 92ae3f0

Please sign in to comment.