Skip to content

Commit

Permalink
Enable maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunous committed Oct 29, 2023
1 parent 9451f73 commit 468bd44
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ allprojects {
}
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
13 changes: 6 additions & 7 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,40 @@ android {
}
}

/*
project.afterEvaluate {
publishing {
publications {
aar(MavenPublication) {
groupId = 'com.github.Tunous'
artifactId = 'SwipeActionView'
version = '1.4.0-SNAPSHOT'
version = '1.5.0-SNAPSHOT'

artifact bundleReleaseAar
artifact sourcesJar
artifact javadocJar
}
}
}
}*/
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}


task sourcesJar(type: Jar) {
tasks.register('sourcesJar', Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier = 'sources'
}

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

task javadocJar(type: Jar, dependsOn: javadoc) {
tasks.register('javadocJar', Jar) {
dependsOn javadoc
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
1 change: 0 additions & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
//id 'maven-publish'
}


Expand Down

0 comments on commit 468bd44

Please sign in to comment.