touch-grass-reminder/build.gradle

100 lines
2 KiB
Groovy
Raw Permalink Normal View History

2023-12-07 12:25:45 +00:00
plugins {
id 'maven-publish'
alias libs.plugins.quilt.loom
}
base {
archivesName = project.archives_base_name
}
version = "$project.version+${libs.versions.minecraft.get()}"
group = project.maven_group
repositories {
2023-12-07 17:23:38 +00:00
mavenCentral()
maven {
// For ImageIO
name "SonaType Maven"
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
// For YACL
name "Xander Maven"
url "https://maven.isxander.dev/releases"
}
maven {
// For quilt-parsers
name "QuiltMC Maven"
url "https://maven.quiltmc.org/repository/release"
}
maven {
// For modmenu
name "TerraformersMC Maven"
url "https://maven.terraformersmc.com/releases"
}
2023-12-07 12:25:45 +00:00
}
loom {
mods {
2023-12-07 18:05:53 +00:00
"touch_grass_reminder" {
2023-12-07 12:25:45 +00:00
sourceSet("main")
}
}
}
dependencies {
minecraft libs.minecraft
mappings loom.layered {
mappings "org.quiltmc:quilt-mappings:${libs.versions.quilt.mappings.get()}:intermediary-v2"
officialMojangMappings()
}
modImplementation libs.quilt.loader
modImplementation libs.quilted.fabric.api
2023-12-07 17:23:38 +00:00
modImplementation "dev.isxander.yacl:yet-another-config-lib-fabric:3.2.1+1.20"
2023-12-07 12:25:45 +00:00
}
processResources {
inputs.property 'version', version
filesMatching('quilt.mod.json') {
expand 'version': version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.release = 17
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
jar {
from('LICENSE') {
rename { "${it}_${base.archivesName.get()}" }
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}