mirror of
https://github.com/GeyserMC/Rainbow.git
synced 2025-12-19 14:59:16 +00:00
Setup publishing
This commit is contained in:
@@ -8,6 +8,10 @@ group = properties["maven_group"]!! as String
|
||||
val archivesBaseName = properties["archives_base_name"]!! as String
|
||||
val targetJavaVersion = 21
|
||||
|
||||
base {
|
||||
archivesName = archivesBaseName
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "ParchmentMC"
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
plugins {
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
val archivesBaseName = properties["archives_base_name"]!! as String
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "eclipseisoffline"
|
||||
url = uri(
|
||||
when {
|
||||
version.toString().endsWith("-SNAPSHOT") -> "https://maven.eclipseisoffline.xyz/snapshots"
|
||||
else -> "https://maven.eclipseisoffline.xyz/releases"
|
||||
}
|
||||
)
|
||||
credentials(PasswordCredentials::class)
|
||||
}
|
||||
}
|
||||
|
||||
publications {
|
||||
register("publish", MavenPublication::class) {
|
||||
artifactId = archivesBaseName
|
||||
from(project.components["java"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id("rainbow.base-conventions")
|
||||
id("rainbow.publish-conventions")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
1
client/gradle.properties
Normal file
1
client/gradle.properties
Normal file
@@ -0,0 +1 @@
|
||||
archives_base_name=rainbow-client
|
||||
@@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id("rainbow.base-conventions")
|
||||
id("rainbow.publish-conventions")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
1
datagen/gradle.properties
Normal file
1
datagen/gradle.properties
Normal file
@@ -0,0 +1 @@
|
||||
archives_base_name=rainbow-datagen
|
||||
@@ -1,6 +1,5 @@
|
||||
org.gradle.jvmargs=-Xmx1G
|
||||
|
||||
# Mod Properties
|
||||
mod_version=0.1.0-1.21.10
|
||||
maven_group=org.geysermc
|
||||
archives_base_name=rainbow
|
||||
mod_version=0.2.0-1.21.10-SNAPSHOT
|
||||
maven_group=org.geysermc.rainbow
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
plugins {
|
||||
id("rainbow.base-conventions")
|
||||
id("rainbow.publish-conventions")
|
||||
}
|
||||
|
||||
1
rainbow/gradle.properties
Normal file
1
rainbow/gradle.properties
Normal file
@@ -0,0 +1 @@
|
||||
archives_base_name=rainbow
|
||||
Reference in New Issue
Block a user