Skip to content

Commit

Permalink
ci: swap to nexo repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Nov 23, 2024
1 parent 44fd8b3 commit bc4cc7b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:

- uses: MineInAbyss/publish-action@develop
with:
maven-metadata-url: https://repo.mineinabyss.com/releases/com/nexomc/nexolibs/maven-metadata.xml
maven-snapshot-metadata-url: https://repo.mineinabyss.com/snapshots/com/nexomc/nexolibs/maven-metadata.xml
maven-metadata-url: https://repo.nexomc.com/releases/com/nexomc/nexolibs/maven-metadata.xml
maven-snapshot-metadata-url: https://repo.nexomc.com/snapshots/com/nexomc/nexolibs/maven-metadata.xml
maven-username: ${{ secrets.MAVEN_USERNAME }}
maven-password: ${{ secrets.MAVEN_PASSWORD }}
release-files: |
Expand Down
31 changes: 28 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import xyz.jpenilla.resourcefactory.bukkit.BukkitPluginYaml

plugins {
id("java")
id("maven-publish")
alias(idofrontLibs.plugins.mia.kotlin.jvm)
alias(idofrontLibs.plugins.mia.papermc)
alias(idofrontLibs.plugins.mia.copyjar)
alias(idofrontLibs.plugins.mia.publication)
alias(idofrontLibs.plugins.mia.autoversion)
id("xyz.jpenilla.run-paper") version "2.3.1" // Adds runServer and runMojangMappedServer tasks for testing
id("xyz.jpenilla.resource-factory-bukkit-convention") version "1.2.0"
Expand Down Expand Up @@ -43,7 +43,7 @@ repositories {
}

dependencies {
api(idofrontLibs.kotlin.stdlib)
implementation(idofrontLibs.kotlin.stdlib)

api("net.kyori:adventure-text-minimessage:$adventureVersion")
api("net.kyori:adventure-text-serializer-plain:$adventureVersion")
Expand All @@ -67,7 +67,7 @@ dependencies {
api("io.th0rgal:protectionlib:1.7.0")
api("com.github.technicallycoded:FoliaLib:main-SNAPSHOT")

api("commons-io:commons-io:2.11.0")
api("commons-io:commons-io:2.14.0")
api("com.google.code.gson:gson:$googleGsonVersion")
api("org.apache.commons:commons-lang3:$apacheLang3Version")
api("org.apache.httpcomponents.client5:httpclient5:$apacheHttpClientVersion")
Expand All @@ -83,6 +83,31 @@ tasks {
}
}

copyJar {
destPath.set(project.findProperty("nexo_plugin_path").toString())
excludePlatformDependencies.set(false)
}

publishing {
repositories {
maven {
val repo = "https://repo.nexomc.com/"
val isSnapshot = System.getenv("IS_SNAPSHOT") == "true"
val url = if (isSnapshot) repo + "snapshots" else repo + "releases"
setUrl(url)
credentials {
username = project.findProperty("mineinabyssMavenUsername") as String?
password = project.findProperty("mineinabyssMavenPassword") as String?
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}

bukkitPluginYaml {
main = "com.nexomc.nexo.NexoLibs"
name = "NexoLibs"
Expand Down

0 comments on commit bc4cc7b

Please sign in to comment.