42 lines
1.3 KiB
Groovy
42 lines
1.3 KiB
Groovy
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
|
|
|
defaultTasks 'build'
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven-publish'
|
|
|
|
group = 'ovh.sad.animalrp'
|
|
version = "${project.mod_version}"
|
|
|
|
sourceCompatibility = 21
|
|
targetCompatibility = 21
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
options.release = 21;
|
|
}
|
|
|
|
jar {
|
|
from '../LICENSE.txt'
|
|
}
|
|
|
|
repositories {
|
|
// Fix issue with lwjgl-freetype not being found on macOS / ForgeGradle issue
|
|
//
|
|
// Could not resolve all files for configuration ':_compileJava_1'.
|
|
// Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3).
|
|
maven {
|
|
url "https://libraries.minecraft.net"
|
|
content {
|
|
includeModule("org.lwjgl", "lwjgl-freetype")
|
|
}
|
|
}
|
|
mavenCentral()
|
|
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
|
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
|
|
maven { url 'https://libraries.minecraft.net/' }
|
|
maven { url "https://repo.william278.net/releases" }
|
|
}
|
|
} |