1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

It should be able to publish now

This commit is contained in:
Tim203
2022-05-11 21:27:41 +02:00
parent c10561d010
commit fc2fe290a6
3 changed files with 14 additions and 7 deletions

View File

@@ -5,24 +5,27 @@ plugins {
}
publishing {
publications.create<MavenPublication>("mavenJava") {
groupId = project.group as String
artifactId = "floodgate-" + project.name
version = project.version as String
publications {
create<MavenPublication>("mavenJava") {
groupId = project.group as String
artifactId = project.name
version = project.version as String
artifact(tasks["shadowJar"])
artifact(tasks["sourcesJar"])
artifact(tasks["shadowJar"])
artifact(tasks["sourcesJar"])
}
}
}
artifactory {
setContextUrl("https://repo.opencollab.dev/artifactory")
publish {
repository {
setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases")
setMavenCompatible(true)
}
defaults {
publishConfigs("archives")
publications("mavenJava")
setPublishArtifacts(true)
setPublishPom(true)
setPublishIvy(false)

View File

@@ -18,6 +18,8 @@ val platforms = setOf(
projects.velocity
).map { it.dependencyProject }
projects.api.dependencyProject.plugins.apply("floodgate.publish-conventions")
//todo re-add pmd and organisation/license/sdcm/issuemanagement stuff
subprojects {

View File

@@ -3,6 +3,8 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
// mavenLocal()
// Geyser, Cumulus etc.
maven("https://repo.opencollab.dev/maven-releases") {
mavenContent { releasesOnly() }