WIP broken stuff.

This commit is contained in:
LambdAurora
2021-03-15 17:20:16 +01:00
parent deccb758ea
commit 0532913d69
26 changed files with 1023 additions and 936 deletions

View File

@@ -1,12 +1,20 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'org.cadixdev.licenser' version '0.5.0'
}
allprojects {
apply plugin: 'java-library'
group = project.maven_group
version = project.mod_version
// This field defines the Java version your mod target.
// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too.
def targetJavaVersion = 8
repositories {
mavenLocal()
mavenCentral()
@@ -16,8 +24,21 @@ allprojects {
dependencies {
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
java {
sourceCompatibility = JavaVersion.toVersion(targetJavaVersion)
targetCompatibility = JavaVersion.toVersion(targetJavaVersion)
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
if (JavaVersion.current().isJava9Compatible()) {
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetJavaVersion
}
}
}
publishing {
@@ -34,24 +55,3 @@ allprojects {
}
}
}
/*
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
// select the repositories you want to publish to
repositories {
mavenLocal()
}
}*/