Skip to content

Commit 47bea50

Browse files
committed
Change publish plugin
1 parent e76f346 commit 47bea50

File tree

2 files changed

+2
-71
lines changed

2 files changed

+2
-71
lines changed

build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ buildscript {
66
google()
77
jcenter()
88
mavenCentral()
9-
gradlePluginPortal()
109

1110
}
1211
dependencies {
@@ -15,7 +14,7 @@ buildscript {
1514
// NOTE: Do not place your application dependencies here; they belong
1615
// in the individual module build.gradle files
1716
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.18.1"
18-
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
17+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
1918
}
2019
}
2120

@@ -30,7 +29,4 @@ allprojects {
3029
task clean(type: Delete) {
3130
delete rootProject.buildDir
3231
}
33-
apply plugin: 'io.github.gradle-nexus.publish-plugin'
3432

35-
// 2: applying separate publishing script
36-
apply from: "${rootDir}/scripts/publish-root.gradle"

universal_adapter/build.gradle

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@ plugins {
33
id 'kotlin-android'
44
id 'kotlin-kapt'
55
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
256
}
267

278
android {
@@ -81,50 +62,4 @@ dependencies {
8162
implementation "androidx.recyclerview:recyclerview:1.2.0"
8263

8364
}
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

Comments
 (0)