Skip to content

Commit 468bd44

Browse files
committed
Enable maven publishing
1 parent 9451f73 commit 468bd44

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.idea/gradle.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ allprojects {
1919
}
2020
}
2121

22-
task clean(type: Delete) {
22+
tasks.register('clean', Delete) {
2323
delete rootProject.buildDir
2424
}

library/build.gradle

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,41 +26,40 @@ android {
2626
}
2727
}
2828

29-
/*
3029
project.afterEvaluate {
3130
publishing {
3231
publications {
3332
aar(MavenPublication) {
3433
groupId = 'com.github.Tunous'
3534
artifactId = 'SwipeActionView'
36-
version = '1.4.0-SNAPSHOT'
35+
version = '1.5.0-SNAPSHOT'
3736

3837
artifact bundleReleaseAar
3938
artifact sourcesJar
4039
artifact javadocJar
4140
}
4241
}
4342
}
44-
}*/
43+
}
4544

4645
dependencies {
4746
implementation 'androidx.appcompat:appcompat:1.6.1'
4847
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
4948
}
5049

51-
52-
task sourcesJar(type: Jar) {
50+
tasks.register('sourcesJar', Jar) {
5351
from android.sourceSets.main.java.srcDirs
5452
archiveClassifier = 'sources'
5553
}
5654

57-
task javadoc(type: Javadoc) {
55+
tasks.register('javadoc', Javadoc) {
5856
failOnError false
5957
source = android.sourceSets.main.java.sourceFiles
6058
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
6159
}
6260

63-
task javadocJar(type: Jar, dependsOn: javadoc) {
61+
tasks.register('javadocJar', Jar) {
62+
dependsOn javadoc
6463
archiveClassifier = 'javadoc'
6564
from javadoc.destinationDir
6665
}

sample/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
id 'com.android.application'
33
id 'kotlin-android'
4-
//id 'maven-publish'
54
}
65

76

0 commit comments

Comments
 (0)