diff --git a/multistatelayout/build.gradle.kts b/multistatelayout/build.gradle.kts index 5b91f55..a480267 100644 --- a/multistatelayout/build.gradle.kts +++ b/multistatelayout/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } val publishId = "multistatelayout" -val publishVersion = "1.0.0" +val publishVersion = "1.0.1" val isReleaseBuild = !publishVersion.endsWith("-SNAPSHOT") android { @@ -38,6 +38,13 @@ dependencies { implementation(Libs.AndroidX.ANNOTATION) } +val sourcesJar by tasks.creating(Jar::class) { + group = JavaBasePlugin.DOCUMENTATION_GROUP + description = "Assembles sources JAR" + archiveClassifier.set("sources") + from(android.sourceSets.getByName("main").java.srcDirs) +} + afterEvaluate { publishing { publications { @@ -48,6 +55,8 @@ afterEvaluate { from(components.getByName("release")) + artifact(sourcesJar) + pom { name.set(publishId) description.set("A customize multiple state layout for Android.") diff --git a/sample.apk b/sample.apk index d5d41db..960f3e7 100644 Binary files a/sample.apk and b/sample.apk differ