BowDogPrediction/build.gradle

64 lines
1.2 KiB
Groovy
Raw Normal View History

2021-02-19 22:11:41 +00:00
plugins {
2021-03-21 17:48:17 +00:00
id 'fabric-loom' version '0.6-SNAPSHOT'
2021-02-19 22:11:41 +00:00
id 'maven-publish'
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
2021-02-19 22:11:41 +00:00
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
2021-03-21 17:48:17 +00:00
//Minecraft
2021-02-19 22:11:41 +00:00
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
2021-03-21 17:48:17 +00:00
//Meteor
2021-02-19 22:11:41 +00:00
modImplementation "com.github.MeteorDevelopment:meteor-client:master-SNAPSHOT"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
2021-03-21 17:48:17 +00:00
it.options.release = targetVersion
2021-02-19 22:11:41 +00:00
}
}
java {
withSourcesJar()
}
jar {
2021-03-21 17:48:17 +00:00
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}
2021-02-19 22:11:41 +00:00
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
2021-03-21 17:48:17 +00:00
}