Update SpongeGradle to 1.1.1-SNAPSHOT and Indra to 2.0.5

Also move common configuration to convention plugins
This commit is contained in:
jmp committed 2021-05-28 01:51:52 -07:00
1 parent 6518cecce2
commit eb7ec4353f
14 files changed
+117 -108

No files matched your search

+2 -62
View File
@@ -1,9 +1,5 @@
import net.kyori.indra.repository.sonatypeSnapshots
plugins {
id("carbon-build-logic")
id("net.kyori.indra")
id("net.kyori.indra.git")
id("carbon.build-logic")
}
group = "net.draycia"
@@ -12,65 +8,9 @@ val projectVersion: String by project // get from gradle.properties
version = projectVersion
subprojects {
plugins.apply("net.kyori.indra")
plugins.apply("net.kyori.indra.checkstyle")
plugins.apply("net.kyori.indra.publishing")
if (projectVersion.endsWith("-SNAPSHOT")) {
// Add git commit hash to version for platforms, but not for API
if (this != rootProject.projects.carbonchatApi.dependencyProject) {
version = "$projectVersion+${indraGit.commit()?.name?.substring(0, 7) ?: error("Failed to retrieve git commit hash")}"
}
}
repositories {
mavenCentral()
sonatypeSnapshots()
// Paper API
maven("https://papermc.io/repo/repository/maven-public/")
// Moonshine
maven("https://nexus.proximyst.com/repository/maven-public/") {
content { includeGroup("com.proximyst.moonshine") }
}
// cloud snapshots repo
//maven("https://repo.incendo.org/content/repositories/snapshots") {
// content { includeGroup("cloud.commandframework") }
//}
// temporary cloud snapshots repo for sponge-8
maven("https://repo.jpenilla.xyz/snapshots/") {
content { includeGroup("cloud.commandframework") }
}
// PlaceholderAPI
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") {
content { includeGroup("me.clip") }
}
maven("https://jitpack.io") {
content { includeGroupByRegex("com\\.github\\..*") }
}
}
plugins.apply("carbon.base-conventions")
dependencies {
"checkstyle"(rootProject.libs.stylecheck)
}
configure<JavaPluginConvention> {
disableAutoTargetJvm()
}
indra {
gpl3OnlyLicense()
javaVersions {
target(16)
}
github("Hexaoxide", "Carbon")
}
}
tasks {
// Root project has no useful artifacts
withType<Jar> {
onlyIf { false }
}
}