-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46a327f
commit 12282bf
Showing
9 changed files
with
84 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
> | ||
<manifest> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ plugins { | |
} | ||
|
||
dependencies { | ||
implementation(libs.nexus.publish) | ||
implementation(libs.vanniktech.publish) | ||
} |
76 changes: 35 additions & 41 deletions
76
convention-plugins/src/main/kotlin/module.publication.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,46 @@ | ||
import org.gradle.api.publish.maven.MavenPublication | ||
import org.gradle.api.tasks.bundling.Jar | ||
import org.gradle.kotlin.dsl.`maven-publish` | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
`maven-publish` | ||
signing | ||
id("com.vanniktech.maven.publish") | ||
} | ||
|
||
publishing { | ||
// Configure all publications | ||
publications.withType<MavenPublication> { | ||
// Stub javadoc.jar artifact | ||
artifact(tasks.register("${name}JavadocJar", Jar::class) { | ||
archiveClassifier.set("javadoc") | ||
archiveAppendix.set(this@withType.name) | ||
}) | ||
mavenPublishing { | ||
|
||
// Provide artifacts information required by Maven Central | ||
pom { | ||
name.set("Model-View-Intent (MVI) components for Kotlin Multiplatform") | ||
description.set("Minimalistic MVI implementation for Kotlin Multiplatform") | ||
url.set("https://github.com/horatiu-udrea/mvi-kotlin") | ||
coordinates( | ||
groupId = "ro.horatiu-udrea", | ||
artifactId = "mvi", | ||
version = "0.1.0" | ||
) | ||
// Provide artifacts information required by Maven Central | ||
pom { | ||
name.set("Model-View-Intent (MVI) components for Kotlin Multiplatform") | ||
description.set("Minimalistic MVI implementation for Kotlin Multiplatform") | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/horatiu-udrea/mvi-kotlin") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://opensource.org/licenses/MIT") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("horatiu-udrea") | ||
name.set("Horațiu Udrea") | ||
email.set("[email protected]") | ||
// organization.set("") | ||
// organizationUrl.set("") | ||
} | ||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://opensource.org/licenses/MIT") | ||
distribution.set("https://opensource.org/licenses/MIT") | ||
} | ||
scm { | ||
url.set("https://github.com/horatiu-udrea/mvi-kotlin") | ||
} | ||
developers { | ||
developer { | ||
id.set("horatiu-udrea") | ||
name.set("Horațiu Udrea") | ||
email.set("[email protected]") | ||
url.set("https://github.com/horatiu-udrea") | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/horatiu-udrea/mvi-kotlin") | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
if (project.hasProperty("signing.gnupg.keyName")) { | ||
useGpgCmd() | ||
sign(publishing.publications) | ||
} | ||
} | ||
// Configure publishing to Sonatype | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
|
||
// Enable GPG signing for all publications | ||
signAllPublications() | ||
} |
19 changes: 0 additions & 19 deletions
19
convention-plugins/src/main/kotlin/root.publication.gradle.kts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters