Skip to content

Commit

Permalink
feat:Publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinnZou committed Jan 29, 2024
1 parent 6403df2 commit c817a94
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
.cxx
local.properties
/.idea
keySec.gpg
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ plugins {
id("com.android.application") version "8.2.0" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
id("com.android.library") version "8.2.0" apply false
id("com.vanniktech.maven.publish") version "0.25.3" apply false
}
24 changes: 23 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,26 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true


GROUP=io.github.kevinnzou
POM_ARTIFACT_ID=compose-webview
VERSION_NAME=0.33.4

POM_NAME=Compose WebView
POM_INCEPTION_YEAR=2023
POM_DESCRIPTION=WebView for Jetpack Compose
POM_URL=https://github.com/KevinnZou/compose-webview

POM_SCM_URL=https://github.com/KevinnZou/compose-webview
POM_SCM_CONNECTION=scm:git:git://github.com/KevinnZou/compose-webview.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/KevinnZou/compose-webview.git

POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=kevinzou
POM_DEVELOPER_NAME=Kevin Zou
POM_DEVELOPER_URL=https://github.com/KevinnZou/
6 changes: 6 additions & 0 deletions web/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("com.vanniktech.maven.publish")
}

android {
Expand Down Expand Up @@ -51,4 +52,9 @@ dependencies {
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}

mavenPublishing {
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01, automaticRelease = true)
signAllPublications()
}

0 comments on commit c817a94

Please sign in to comment.