Skip to content

Commit

Permalink
add maven-publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AnupKumarPanwar committed Nov 16, 2021
1 parent 1fd7bb4 commit c796091
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build.gradle
Expand Up @@ -3,9 +3,11 @@ buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
15 changes: 14 additions & 1 deletion scratchview/build.gradle
@@ -1,5 +1,6 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -28,10 +29,22 @@ android {
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = "com.anupkumarpanwar"
artifactId = "scratchviewdemo"
version = '1.6'
}
}
}
}

0 comments on commit c796091

Please sign in to comment.