Skip to content

Commit

Permalink
remove maven gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
liui committed Dec 27, 2021
1 parent e4d9b0f commit 4d4c441
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ buildscript {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
ext {
Expand Down
40 changes: 13 additions & 27 deletions web3lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}

apply plugin: 'com.github.dcendents.android-maven'
group='com.github.coming-chat'
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.comingchat.web3'
artifactId = 'web3'
version = '1.0.0'
}
}
}
}

android {
compileSdkVersion 30
Expand Down Expand Up @@ -52,29 +63,4 @@ dependencies {

androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.sourceFiles
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

task classesJar(type: Jar) {
from "$buildDir/intermediates/classes/release"
}

artifacts {
archives classesJar
archives javadocJar
archives sourcesJar
}

0 comments on commit 4d4c441

Please sign in to comment.