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

60 lines
1.3 KiB
Plaintext
Raw 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"
2021-11-17 18:14:03 +00:00
version = "3.1.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 {
implementation("net.fabricmc:fabric-loom:0.10-SNAPSHOT")
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
}
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(tasks.jar)
}
}
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
}
}
}
}