-
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.
Switch to vanniktech's maven publishing plugin
- Loading branch information
Showing
6 changed files
with
55 additions
and
85 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 was deleted.
Oops, something went wrong.
76 changes: 0 additions & 76 deletions
76
convention-plugins/src/main/kotlin/convention.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,4 @@ dependencyResolutionManagement { | |
mavenCentral() | ||
} | ||
} | ||
includeBuild("convention-plugins") | ||
include(":shared") |
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,9 +1,11 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
alias(libs.plugins.multiplatform) | ||
alias(libs.plugins.android.library) | ||
alias(libs.plugins.kotlinx.serialization) | ||
id("org.jetbrains.kotlinx.atomicfu") | ||
id("convention.publication") | ||
id("com.vanniktech.maven.publish") | ||
} | ||
|
||
group = "com.t895.mcstatuskt" | ||
|
@@ -74,3 +76,47 @@ android { | |
minSdk = 21 | ||
} | ||
} | ||
|
||
mavenPublishing { | ||
// Define coordinates for the published artifact | ||
coordinates( | ||
groupId = "io.github.t895", | ||
artifactId = "mcstatuskt", | ||
version = "0.1.0" | ||
) | ||
|
||
// Configure POM metadata for the published artifact | ||
pom { | ||
name.set("mcstatuskt") | ||
description.set("Simple Minecraft Server pinger") | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/t895/mcstatuskt") | ||
|
||
licenses { | ||
license { | ||
name.set("GPLv3") | ||
url.set("https://opensource.org/licenses/gpl-3-0") | ||
} | ||
} | ||
|
||
// Specify developer information | ||
developers { | ||
developer { | ||
id.set("t895") | ||
name.set("Charles Lombardo") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
// Specify SCM information | ||
scm { | ||
url.set("https://github.com/t895/mcstatuskt") | ||
} | ||
} | ||
|
||
// Configure publishing to Maven Central | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
|
||
// Enable GPG signing for all publications | ||
signAllPublications() | ||
} |