@@ -3,25 +3,6 @@ plugins {
3
3
id ' kotlin-android'
4
4
id ' kotlin-kapt'
5
5
id ' io.gitlab.arturbosch.detekt'
6
- id ' maven-publish' // Apply this plugin at the top of your library build.gradle
7
- id " signing"
8
- }
9
-
10
- ext {
11
- PUBLISH_GROUP_ID = ' com.yogeshpaliyal'
12
- PUBLISH_VERSION = ' 3.0.0'
13
- PUBLISH_ARTIFACT_ID = ' universal-adapter'
14
- }
15
- apply from : " ${ rootDir} /scripts/publish-module.gradle"
16
-
17
-
18
-
19
- def getVersionName = { ->
20
- return " 1.0.0" // Replace with version Name
21
- }
22
-
23
- def getArtificatId = { ->
24
- return " universaladapter" // Replace with library name ID
25
6
}
26
7
27
8
android {
@@ -81,50 +62,4 @@ dependencies {
81
62
implementation " androidx.recyclerview:recyclerview:1.2.0"
82
63
83
64
}
84
-
85
-
86
- /*
87
- uploadArchives {
88
- repositories {
89
- mavenDeployer {
90
- beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
91
-
92
- repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
93
- authentication(userName: System.getenv('ossrhUsername'), password: System.getenv('ossrhPassword'))
94
- }
95
-
96
- snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
97
- authentication(userName: System.getenv('ossrhUsername'), password: System.getenv('ossrhPassword'))
98
- }
99
-
100
- pom.project {
101
- name 'Universal Recycler adapter'
102
- packaging 'jar'
103
- // optionally artifactId can be defined here
104
- description 'Universal Recycler adapter.'
105
- url 'https://github.com/yogeshpaliyal/Android-Universal-Recycler-View-Adapter'
106
-
107
- scm {
108
- connection 'https://github.com/yogeshpaliyal/Android-Universal-Recycler-View-Adapter.git'
109
- developerConnection 'https://github.com/yogeshpaliyal/Android-Universal-Recycler-View-Adapter.git'
110
- url 'https://github.com/yogeshpaliyal/Android-Universal-Recycler-View-Adapter'
111
- }
112
-
113
- licenses {
114
- license {
115
- name 'MIT license'
116
- url 'https://opensource.org/licenses/MIT'
117
- }
118
- }
119
-
120
- developers {
121
- developer {
122
- id 'yogeshpaliyal'
123
- name 'Yogesh Choudhary Paliyal'
124
- email 'yogeshpaliyal.foss@gmail.com'
125
- }
126
- }
127
- }
128
- }
129
- }
130
- }*/
65
+ apply plugin : " com.vanniktech.maven.publish"
0 commit comments