This repository has been archived on 2024-11-16. You can view files and clone it, but cannot push or open issues or pull requests.
BowDogPrediction/build.gradle

44 lines
973 B
Groovy
Raw Normal View History

2021-02-19 22:11:41 +00:00
plugins {
id 'fabric-loom' version '0.9-SNAPSHOT'
2021-02-19 22:11:41 +00:00
id 'maven-publish'
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
2021-02-19 22:11:41 +00:00
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
repositories {
maven {
name = "jitpack"
url = "https://jitpack.io"
}
2021-02-19 22:11:41 +00:00
}
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_version}:v2"
2021-02-19 22:11:41 +00:00
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
}
2021-03-21 17:48:17 +00:00
}