Skip to content

Commit 1b4cb75

Browse files
authored
Prepare for release 1.0.5 (#414)
Upgraded the library publishing setup as well as things changed recently and our existing setup wasn't working anymore.
1 parent b3b19bb commit 1b4cb75

File tree

10 files changed

+55
-31
lines changed

10 files changed

+55
-31
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Showkase
2-
![Showkase Version](https://img.shields.io/badge/Showkase-1.0.4-brightgreen) ![Compatible with Compose](https://img.shields.io/badge/Compatible%20with%20Compose-1.5.13-brightgreen)
2+
![Showkase Version](https://img.shields.io/badge/Showkase-1.0.5-brightgreen) ![Compatible with Compose](https://img.shields.io/badge/Compatible%20with%20Compose-1.6.7-brightgreen)
33

44
Showkase is an annotation-processor based Android library that helps you organize, discover, search
55
and visualize [Jetpack Compose](https://developer.android.com/jetpack/compose) UI elements. With
@@ -75,15 +75,15 @@ Showkase supports both ksp and kapt. By default, it uses kapt as we only recentl
7575
#### If you want Showkase to be available only in debug builds (Recommended and practical for most use cases)
7676

7777
```kotlin
78-
debugImplementation "com.airbnb.android:showkase:1.0.4"
79-
implementation "com.airbnb.android:showkase-annotation:1.0.4"
80-
kspDebug "com.airbnb.android:showkase-processor:1.0.4" or kaptDebug "com.airbnb.android:showkase-processor:1.0.4"
78+
debugImplementation "com.airbnb.android:showkase:1.0.5"
79+
implementation "com.airbnb.android:showkase-annotation:1.0.5"
80+
kspDebug "com.airbnb.android:showkase-processor:1.0.5" or kaptDebug "com.airbnb.android:showkase-processor:1.0.5"
8181
```
8282

8383
#### If you want Showkase to be available in your release builds as well
8484
```kotlin
85-
implementation "com.airbnb.android:showkase:1.0.4"
86-
ksp "com.airbnb.android:showkase-processor:1.0.4" or kapt "com.airbnb.android:showkase-processor:1.0.4"
85+
implementation "com.airbnb.android:showkase:1.0.5"
86+
ksp "com.airbnb.android:showkase-processor:1.0.5" or kapt "com.airbnb.android:showkase-processor:1.0.5"
8787

8888
```
8989

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ buildscript {
2727
'testParameterInjector' : '1.8',
2828
'googleTruth' : '1.1.3',
2929
'material' : '1.4.0',
30-
'mavenPublish' : '0.22.0',
30+
'mavenPublish' : '0.34.0',
3131
'mdcComposeThemeAdapter' : '1.0.2',
3232
'strikt' : '0.33.0',
3333
'xprocessing' : '2.7.0',

gradle.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ android.enableJetifier=false
44
kotlin.code.style=official
55
kapt.include.compile.classpath=false
66
RELEASE_SIGNING_ENABLED=true
7-
SONATYPE_HOST=DEFAULT
7+
SONATYPE_HOST=CENTRAL_PORTAL
8+
mavenCentralPublishing=true
9+
mavenCentralAutomaticPublishing=true
810

9-
VERSION_NAME=1.0.4
11+
VERSION_NAME=1.0.5
1012
GROUP=com.airbnb.android
1113
POM_DESCRIPTION=Showkase is an Android library that helps you organize, discover, search and visualize Jetpack Compose components.
1214
POM_URL=https://github.com/airbnb/Showkase

publishing.gradle

Lines changed: 0 additions & 16 deletions
This file was deleted.

showkase-annotation/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
import com.vanniktech.maven.publish.JavaLibrary
2+
import com.vanniktech.maven.publish.JavadocJar
3+
14
plugins {
25
id 'java-library'
36
id 'kotlin'
7+
id 'com.vanniktech.maven.publish'
48
}
5-
apply from: "$rootDir/publishing.gradle"
69

710
kotlin {
811
jvmToolchain(17)
912
}
13+
14+
mavenPublishing {
15+
configure(new JavaLibrary(new JavadocJar.Javadoc(), true))
16+
}

showkase-processor/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import com.vanniktech.maven.publish.JavaLibrary
2+
import com.vanniktech.maven.publish.JavadocJar
3+
14
plugins {
25
id 'java-library'
36
id 'kotlin'
7+
id 'com.vanniktech.maven.publish'
48
}
5-
apply from: "$rootDir/publishing.gradle"
69

710
kotlin {
811
jvmToolchain(17)
@@ -37,3 +40,7 @@ dependencies {
3740
testImplementation deps.test.junit
3841
testImplementation deps.xprocessingTesting
3942
}
43+
44+
mavenPublishing {
45+
configure(new JavaLibrary(new JavadocJar.Javadoc(), true))
46+
}

showkase-screenshot-testing-paparazzi/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import com.vanniktech.maven.publish.AndroidMultiVariantLibrary
2+
13
plugins {
24
id 'com.android.library'
35
id 'org.jetbrains.kotlin.android'
46
id 'org.jetbrains.kotlin.plugin.compose'
7+
id 'com.vanniktech.maven.publish'
58
}
6-
apply from: "$rootDir/publishing.gradle"
79

810
configurations {
911
all {
@@ -81,4 +83,8 @@ dependencies {
8183
api deps.test.testParameterInjector
8284
api deps.test.androidXTestRules
8385
api deps.test.androidxTestRunner
86+
}
87+
88+
mavenPublishing {
89+
configure(new AndroidMultiVariantLibrary(true, true))
8490
}

showkase-screenshot-testing-shot/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import com.vanniktech.maven.publish.AndroidMultiVariantLibrary
2+
13
plugins {
24
id 'com.android.library'
35
id 'kotlin-android'
46
id 'shot'
57
id 'org.jetbrains.kotlin.plugin.compose'
8+
id 'com.vanniktech.maven.publish'
69
}
7-
apply from: "$rootDir/publishing.gradle"
810

911
android {
1012
namespace "com.airbnb.android.showkase.screenshot.testing.shot"
@@ -59,3 +61,7 @@ dependencies {
5961
api deps.test.androidXTestRules
6062
api deps.test.androidxTestRunner
6163
}
64+
65+
mavenPublishing {
66+
configure(new AndroidMultiVariantLibrary(true, true))
67+
}

showkase-screenshot-testing/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import com.vanniktech.maven.publish.AndroidMultiVariantLibrary
2+
13
apply plugin: 'com.android.library'
24
apply plugin: 'kotlin-android'
35
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
4-
apply from: "$rootDir/publishing.gradle"
6+
apply plugin: 'com.vanniktech.maven.publish'
57

68
android {
79
namespace "com.airbnb.android.showkase.screenshot.testing"
@@ -55,3 +57,7 @@ dependencies {
5557
api deps.test.androidXTestRules
5658
api deps.test.androidxTestRunner
5759
}
60+
61+
mavenPublishing {
62+
configure(new AndroidMultiVariantLibrary(true, true))
63+
}

showkase/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import com.vanniktech.maven.publish.AndroidMultiVariantLibrary
2+
13
plugins {
24
id 'com.android.library'
35
id 'kotlin-android'
46
id 'org.jetbrains.kotlin.plugin.compose'
7+
id 'com.vanniktech.maven.publish'
58
}
6-
apply from: "$rootDir/publishing.gradle"
79

810
android {
911
namespace "com.airbnb.android.showkase"
@@ -63,3 +65,7 @@ dependencies {
6365
implementation deps.compose.layout
6466
implementation deps.compose.material
6567
}
68+
69+
mavenPublishing {
70+
configure(new AndroidMultiVariantLibrary(true, true))
71+
}

0 commit comments

Comments
 (0)