quilt-mappings-on-loom/build.gradle.kts

60 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2021-10-23 00:29:47 +00:00
plugins {
java
`java-gradle-plugin`
`maven-publish`
2021-11-17 17:55:48 +00:00
id("com.diffplug.spotless") version "6.0.0"
2021-10-23 00:29:47 +00:00
}
2021-11-17 05:28:37 +00:00
group = "org.quiltmc"
2022-01-31 21:06:31 +00:00
version = "4.0.0"
2021-10-23 00:29:47 +00:00
repositories {
mavenCentral()
maven {
url = uri("https://maven.fabricmc.net/")
}
}
2021-11-17 17:55:48 +00:00
spotless {
java {
// Use comma separator for openjdk like license headers
licenseHeaderFile(file("HEADER")).yearSeparator(", ")
}
}
2021-10-23 00:29:47 +00:00
dependencies {
2022-01-31 21:06:31 +00:00
implementation("net.fabricmc:fabric-loom:0.11-SNAPSHOT")
2021-10-23 00:29:47 +00:00
implementation("net.fabricmc:mapping-io:0.2.1")
implementation("net.fabricmc:tiny-mappings-parser:0.2.2.14")
}
gradlePlugin {
plugins {
create("quiltMappingsLoom") {
2021-11-17 18:14:03 +00:00
id = "org.quiltmc.quilt-mappings-on-loom"
2021-11-17 05:28:37 +00:00
implementationClass = "org.quiltmc.quiltmappings.loom.QuiltMappingsOnLoomPlugin"
2021-10-23 00:29:47 +00:00
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}
2021-10-23 00:29:47 +00:00
publishing {
repositories {
mavenLocal()
if (System.getenv("MAVEN_URL") != null) {
maven {
setUrl(System.getenv("MAVEN_URL"))
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
2021-11-17 05:28:37 +00:00
name = "Maven"
2021-10-23 00:29:47 +00:00
}
}
}
}