Skip to content

Commit 4e0018d

Browse files
committed
Got publishing working and added readme badge.
1 parent 97276f4 commit 4e0018d

6 files changed

Lines changed: 66 additions & 8 deletions

File tree

.idea/jarRepositories.xml

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Compose QR Code
22

33
__A simple, flexible QR code renderer for Jetpack Compose - by *Lightspark*__
4+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.lightspark/compose-qr-code/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.lightspark/compose-qr-code)
45

56
| <img src="./docs/images/purple_and_gold.png" width="150px" height="150px" /> | <img src="./docs/images/lightning.png" width="150px" height="150px" /> | <img src="./docs/images/light_smile_square.png" width="150px" height="150px" /> | <img src="./docs/images/dark_smile_circle.png" width="150px" height="150px" /> |
67
|------------------------------------------------------------------------------|------------------------------------------------------------------------|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------|

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ plugins {
22
id("com.android.application") version "7.4.1" apply false
33
id("com.android.library") version "7.4.1" apply false
44
id("org.jetbrains.kotlin.android") version "1.7.0" apply false
5+
id("com.vanniktech.maven.publish") version "0.24.0" apply false
6+
id("org.jetbrains.dokka") version "1.7.20" apply false
57
}

composeqrcode/build.gradle.kts

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import com.vanniktech.maven.publish.SonatypeHost
2+
13
plugins {
24
id("com.android.library")
35
id("org.jetbrains.kotlin.android")
6+
id("com.vanniktech.maven.publish")
47
}
58

69
android {
@@ -27,19 +30,27 @@ android {
2730
compose = true
2831
}
2932
composeOptions {
30-
kotlinCompilerExtensionVersion = "1.2.0"
33+
kotlinCompilerExtensionVersion = "1.4.2"
3134
}
3235
packagingOptions {
3336
resources {
3437
excludes += "/META-INF/{AL2.0,LGPL2.1}"
3538
}
3639
}
37-
publishing {
38-
singleVariant("release") {
39-
withJavadocJar()
40-
withSourcesJar()
41-
}
42-
}
40+
// Need to figure out if this is needed:
41+
// publishing {
42+
// singleVariant("release") {
43+
// withJavadocJar()
44+
// withSourcesJar()
45+
// }
46+
// }
47+
}
48+
49+
50+
mavenPublishing {
51+
publishToMavenCentral(SonatypeHost.S01)
52+
53+
signAllPublications()
4354
}
4455

4556
dependencies {

composeqrcode/gradle.properties

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
GROUP=com.lightspark
2+
POM_ARTIFACT_ID=compose-qr-code
3+
VERSION_NAME=1.0.0
4+
5+
POM_NAME=compose-qr-code
6+
POM_PACKAGING=aar
7+
8+
POM_DESCRIPTION=A simple, flexible QR code renderer for Jetpack Compose.
9+
POM_INCEPTION_YEAR=2023
10+
11+
POM_URL=https://github.com/lightsparkdev/compose-qr-code
12+
POM_SCM_URL=https://github.com/lightsparkdev/compose-qr-code
13+
POM_SCM_CONNECTION=scm:git@github.com:lightsparkdev/compose-qr-code
14+
POM_SCM_DEV_CONNECTION=scm:git@github.com:lightsparkdev/compose-qr-code
15+
16+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
17+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
18+
POM_LICENCE_DIST=repo
19+
20+
POM_DEVELOPER_ID=lightsparkdev
21+
POM_DEVELOPER_NAME=Lightspark
22+
POM_DEVELOPER_URL=https://github.com/lightsparkdev

settings.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.gradle.api.initialization.resolve.RepositoriesMode
2+
13
pluginManagement {
24
repositories {
35
google()
@@ -6,7 +8,7 @@ pluginManagement {
68
}
79
}
810
dependencyResolutionManagement {
9-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11+
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
1012
repositories {
1113
google()
1214
mavenCentral()

0 commit comments

Comments
 (0)