-
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.
# Add publishing to central sonatype
- Loading branch information
herrrta
committed
Nov 19, 2024
1 parent
4daa421
commit ed83ff9
Showing
9 changed files
with
64 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ local.properties | |
/auth/build/ | ||
/core/build/ | ||
/sample/build/ | ||
/build/ |
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,47 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
// this is necessary to avoid the plugins to be loaded multiple times | ||
// in each subproject's classloader | ||
alias(libs.plugins.gradle.maven.publish) | ||
alias(libs.plugins.kotlinJvm) apply false | ||
} | ||
|
||
val ktorcefulVersion: String by project | ||
|
||
allprojects { | ||
group = "dev.herrrta.ktorceful" | ||
version = ktorcefulVersion | ||
} | ||
|
||
subprojects { | ||
apply(plugin = "com.vanniktech.maven.publish") | ||
if (name != "sample") { | ||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) | ||
signAllPublications() | ||
|
||
coordinates("dev.herrrta.ktorceful", name, ktorcefulVersion) | ||
|
||
pom { | ||
name.set("Ktorceful") | ||
description.set("Ktorceful - Ktor class based resource routing") | ||
url.set("https://github.com/herrrta/ktorceful/") | ||
licenses { | ||
license { | ||
name.set("The Apache Software License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/herrrta/ktorceful") | ||
connection.set("scm:git:https://github.com/herrrta/ktorceful.git") | ||
} | ||
developers { | ||
developer { | ||
name.set("herrrta") | ||
url.set("https://github.com/herrrta/") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -21,4 +21,4 @@ dependencies { | |
|
||
testImplementation(libs.ktor.server.test.host) | ||
testImplementation(libs.kotlin.test.junit) | ||
} | ||
} |
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.
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