mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-13 02:41:31 +01:00
102 lines
2.4 KiB
Groovy
102 lines
2.4 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'xyz.wagyourtail.unimined' version '1.1.1-SNAPSHOT'
|
|
id "maven-publish"
|
|
}
|
|
|
|
group project.maven_group
|
|
version project.version
|
|
|
|
base {
|
|
archivesName = project.archives_base_name
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "wagyourtail releases"
|
|
url = "https://maven.wagyourtail.xyz/releases"
|
|
}
|
|
maven {
|
|
name = "sponge"
|
|
url = "https://repo.spongepowered.org/repository/maven-public/"
|
|
}
|
|
maven { url 'https://jitpack.io' }
|
|
mavenCentral()
|
|
}
|
|
|
|
unimined.minecraft {
|
|
version project.minecraft_version
|
|
|
|
mappings {
|
|
if (Boolean.parseBoolean(project.use_yarn)) {
|
|
legacyYarn(project.yarn_build)
|
|
} else {
|
|
if (Boolean.parseBoolean(project.use_mcp_from_forge)) {
|
|
forgeBuiltinMCP(project.forge_version)
|
|
} else {
|
|
searge()
|
|
mcp(project.mcp_channel, project.mcp_version + "-" + project.minecraft_version)
|
|
}
|
|
}
|
|
}
|
|
|
|
minecraftRemapper.config {
|
|
if (!Boolean.parseBoolean(project.use_yarn)) {
|
|
ignoreFieldDesc(true)
|
|
}
|
|
|
|
ignoreConflicts(true)
|
|
}
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", project.version
|
|
}
|
|
|
|
dependencies {
|
|
implementation("com.github.heni123321:LegacyLauncher:ac106bbe00") {
|
|
transitive = false
|
|
}
|
|
implementation 'org.spongepowered:mixin:0.7.11-SNAPSHOT'
|
|
|
|
implementation project(path: ":common", configuration: "default")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
withSourcesJar()
|
|
}
|
|
|
|
jar {
|
|
from("LICENSE") {
|
|
rename { "${it}_${base.archivesName.get()}" }
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
// Ensure that the encoding is set to UTF-8, no matter what the system default is
|
|
// this fixes some edge cases with special characters not displaying correctly
|
|
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
|
it.options.encoding = "UTF-8"
|
|
|
|
if (JavaVersion.current().isJava9Compatible()) {
|
|
it.options.release = 8
|
|
}
|
|
}
|
|
|
|
// Configure the maven publication
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
|
|
// Select the repositories you want to publish to
|
|
repositories {
|
|
// Uncomment to publish to the local maven
|
|
// mavenLocal()
|
|
}
|
|
} |