Skip to content

Commit

Permalink
maven publication
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuryo committed May 9, 2024
1 parent aa120cf commit 1fcf149
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions swipeablerv/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"


defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
Expand All @@ -21,15 +20,29 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
}

// Define the Maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.findByName('release')
groupId = 'com.github.tsuryo'
artifactId = 'swipeablerv'
version = '1.2'
}
}

repositories {
mavenLocal() // Publish to local Maven repository
}
}

0 comments on commit 1fcf149

Please sign in to comment.