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:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user