plugins { id "architectury-plugin" version "1.3.47" id "forgified-fabric-loom" version "0.5.29" apply false id "org.cadixdev.licenser" version "0.5.0" id "com.jfrog.bintray" version "1.8.4" id "com.matthewprenger.cursegradle" version "1.4.0" apply false id "maven" id "maven-publish" } architectury { minecraft = rootProject.minecraft_version } subprojects { apply plugin: "forgified-fabric-loom" dependencies { testCompile sourceSets.main.output } } allprojects { apply plugin: "java" apply plugin: "architectury-plugin" apply plugin: "org.cadixdev.licenser" archivesBaseName = rootProject.archives_base_name version = rootProject.mod_version + "." + (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv("GITHUB_RUN_NUMBER")) group = rootProject.maven_group tasks.withType(JavaCompile) { options.encoding = "UTF-8" } license { header = rootProject.file("HEADER") ext { name = "shedaniel" year = "2020, 2021" } include "**/*.java" exclude "**/NbtType.java" ignoreFailures = true } ext { releaseChangelog = { def dateFormat = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm") dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")) def branch if (System.env.BRANCH_NAME) { branch = System.env.BRANCH_NAME branch = branch.substring(branch.lastIndexOf("/") + 1) } else { branch = "git rev-parse --abbrev-ref HEAD".execute().in.text.trim() } if (branch == "HEAD") { branch = "git rev-parse --short HEAD".execute().in.text.trim() } def time = dateFormat.format(new Date()) def changes = new StringBuilder() changes << "