Skip to content

Commit 4d4c441

Browse files
author
liui
committed
remove maven gradle plugin
1 parent e4d9b0f commit 4d4c441

2 files changed

Lines changed: 13 additions & 28 deletions

File tree

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ buildscript {
1313
classpath 'com.android.tools.build:gradle:3.6.3'
1414
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
1515
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1716
}
1817
}
1918
ext {

web3lib/build.gradle

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
plugins {
22
id 'com.android.library'
33
id 'org.jetbrains.kotlin.android'
4+
id 'maven-publish'
45
}
56

6-
apply plugin: 'com.github.dcendents.android-maven'
7-
group='com.github.coming-chat'
7+
afterEvaluate {
8+
publishing {
9+
publications {
10+
release(MavenPublication) {
11+
from components.release
12+
groupId = 'com.comingchat.web3'
13+
artifactId = 'web3'
14+
version = '1.0.0'
15+
}
16+
}
17+
}
18+
}
819

920
android {
1021
compileSdkVersion 30
@@ -52,29 +63,4 @@ dependencies {
5263

5364
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
5465
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
55-
}
56-
57-
task sourcesJar(type: Jar) {
58-
classifier = 'sources'
59-
from android.sourceSets.main.java.sourceFiles
60-
}
61-
62-
task javadoc(type: Javadoc) {
63-
source = android.sourceSets.main.java.sourceFiles
64-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
65-
}
66-
67-
task javadocJar(type: Jar, dependsOn: javadoc) {
68-
classifier = 'javadoc'
69-
from javadoc.destinationDir
70-
}
71-
72-
task classesJar(type: Jar) {
73-
from "$buildDir/intermediates/classes/release"
74-
}
75-
76-
artifacts {
77-
archives classesJar
78-
archives javadocJar
79-
archives sourcesJar
8066
}

0 commit comments

Comments
 (0)