Skip to content

Commit

Permalink
chore: add maven publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
localhostov committed Jun 2, 2024
1 parent e731724 commit 2f01ea4
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 7 deletions.
2 changes: 0 additions & 2 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ android {
}

dependencies {
implementation(projects.rounded)

debugImplementation(compose.uiTooling)
}
}
Expand Down
32 changes: 28 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
kotlin.code.style=official

#Gradle
# Gradle
org.gradle.jvmargs=-Xmx8192M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx8192M"

#Android
# Android
android.nonTransitiveRClass=true
android.useAndroidX=true

#MPP
kotlin.mpp.androidSourceSetLayoutVersion=2
# MPP
kotlin.mpp.androidSourceSetLayoutVersion=2

# Maven Publish
SONATYPE_HOST=CENTRAL_PORTAL
RELEASE_SIGNING_ENABLED=true

VERSION_NAME=1.0.0
GROUP=lol.hostov.icons

POM_NAME=Icons
POM_DESCRIPTION=Some icons pack for Jetpack Compose
POM_INCEPTION_YEAR=2024
POM_URL=https://github.com/localhostov/icons

POM_LICENSE_NAME=MIT License
POM_LICENSE_URL=http://www.opensource.org/licenses/mit-license.php
POM_LICENSE_DIST=repo

POM_SCM_URL=https://github.com/localhostov/icons
POM_SCM_CONNECTION=scm:git:git://github.com/localhostov/icons.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/localhostov/icons.git

POM_DEVELOPER_ID=localhostov
POM_DEVELOPER_NAME=Alexander Localhostov
POM_DEVELOPER_URL=https://github.com/localhostov/
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ androidLibrary = { id = "com.android.library", version.ref = "agp" }
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlinVersion" }
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlinVersion" }
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.28.0" }
12 changes: 12 additions & 0 deletions rounded/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.mavenPublish)
}

android {
Expand All @@ -24,6 +25,17 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

packaging {
resources {
excludes += setOf(
"/META-INF/{AL2.0,LGPL2.1}",
"/META-INF/*.SF",
"META-INF/*.DSA",
"META-INF/*.RSA"
)
}
}
}

kotlin {
Expand Down
12 changes: 12 additions & 0 deletions straight/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.mavenPublish)
}

android {
Expand All @@ -24,6 +25,17 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

packaging {
resources {
excludes += setOf(
"/META-INF/{AL2.0,LGPL2.1}",
"/META-INF/*.SF",
"META-INF/*.DSA",
"META-INF/*.RSA"
)
}
}
}

kotlin {
Expand Down

0 comments on commit 2f01ea4

Please sign in to comment.