diff --git a/gradle.properties b/gradle.properties index 7aa92fe..8a0d2f7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,30 +1,8 @@ -GROUP=app.futured.donut -VERSION_NAME=2.X.X-SNAPSHOT -POM_DESCRIPTION=Doughnut-like graph view capable of displaying multiple datasets with assignable colors -POM_INCEPTION_YEAR=2020 -POM_URL=https://github.com/futuredapp/donut -POM_SCM_URL=https://github.com/futuredapp/donut -POM_SCM_CONNECTION=scm:git:git://github.com/futuredapp/donut.git -POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com/futuredapp/donut.git -POM_LICENCE_NAME=MIT -POM_LICENCE_URL=https://github.com/futuredapp/donut/blob/master/LICENCE -POM_LICENCE_DIST=repo -POM_DEVELOPER_ID=futured -POM_DEVELOPER_NAME=Futured -POM_DEVELOPER_URL=https://futured.app -SONATYPE_HOST=CENTRAL_PORTAL -RELEASE_SIGNING_ENABLED=true -# Properties necessary for mavenCentral publishing -mavenCentralPublishing=true -signAllPublications=true -mavenCentralAutomaticPublishing=true -# ORG_GRADLE_PROJECT_SIGNING_PRIVATE_KEY=GPG signing key -# ORG_GRADLE_PROJECT_SIGNING_PASSWORD=GPG password -# ORG_GRADLE_PROJECT_mavenCentralRepositoryUsername=maven central nexus username -# ORG_GRADLE_PROJECT_mavenCentralRepositoryPassword=maven central nexus password org.gradle.jvmargs=-Xmx1536m kotlin.code.style=official android.useAndroidX=true android.enableJetifier=true android.nonTransitiveRClass=true android.nonFinalResIds=true +mavenCentralPublishing=true +signAllPublications=true diff --git a/library-compose/build.gradle.kts b/library-compose/build.gradle.kts index de842ef..10889fd 100644 --- a/library-compose/build.gradle.kts +++ b/library-compose/build.gradle.kts @@ -1,5 +1,3 @@ -import com.vanniktech.maven.publish.KotlinMultiplatform - plugins { alias(libs.plugins.kotlin.multiplatform) alias(libs.plugins.android.library) @@ -10,6 +8,8 @@ plugins { id(libs.plugins.conventions.lint.get().pluginId) } +group = "app.futured.donut" + kotlin { jvmToolchain(ProjectSettings.Kotlin.JvmToolchainVersion) @@ -60,5 +60,34 @@ android { } mavenPublishing { - configure(KotlinMultiplatform()) + coordinates( + groupId = "app.futured.donut", + artifactId = "donut-compose", + version = project.findProperty("VERSION_NAME") as String? ?: "2.X.X-SNAPSHOT" + ) + + pom { + name = "Donut Compose" + description = "Doughnut-like graph view capable of displaying multiple datasets with assignable colors" + url = "https://github.com/futuredapp/donut" + + licenses { + license { + name = "MIT" + url = "https://github.com/futuredapp/donut/blob/master/LICENSE" + } + } + scm { + connection = "scm:git:git://github.com/futuredapp/donut.git" + developerConnection = "scm:git:ssh://github.com/futuredapp/donut.git" + url = "https://github.com/futuredapp/donut" + } + developers { + developer { + id = "futured" + name = "Futured" + url = "https://futured.app" + } + } + } } diff --git a/library-compose/gradle.properties b/library-compose/gradle.properties deleted file mode 100644 index cfb8fad..0000000 --- a/library-compose/gradle.properties +++ /dev/null @@ -1,2 +0,0 @@ -POM_NAME=Donut Compose -POM_ARTIFACT_ID=donut-compose diff --git a/library/build.gradle.kts b/library/build.gradle.kts index e19b95a..b778f43 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -6,6 +6,8 @@ plugins { id(libs.plugins.conventions.lint.get().pluginId) } +group = "app.futured.donut" + kotlin { jvmToolchain(ProjectSettings.Kotlin.JvmToolchainVersion) } @@ -31,3 +33,36 @@ android { dependencies { implementation(libs.androidx.ktx) } + +mavenPublishing { + coordinates( + groupId = "app.futured.donut", + artifactId = "donut", + version = project.findProperty("VERSION_NAME") as String? ?: "2.X.X-SNAPSHOT" + ) + + pom { + name = "Donut" + description = "Doughnut-like graph view capable of displaying multiple datasets with assignable colors" + url = "https://github.com/futuredapp/donut" + + licenses { + license { + name = "MIT" + url = "https://github.com/futuredapp/donut/blob/master/LICENSE" + } + } + scm { + connection = "scm:git:git://github.com/futuredapp/donut.git" + developerConnection = "scm:git:ssh://github.com/futuredapp/donut.git" + url = "https://github.com/futuredapp/donut" + } + developers { + developer { + id = "futured" + name = "Futured" + url = "https://futured.app" + } + } + } +} diff --git a/library/gradle.properties b/library/gradle.properties deleted file mode 100644 index 9d76dd8..0000000 --- a/library/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -POM_NAME=Donut -POM_ARTIFACT_ID=donut -POM_PACKAGING=aar