89 lines
No EOL
2.3 KiB
Groovy
Executable file
89 lines
No EOL
2.3 KiB
Groovy
Executable file
/*
|
|
* This file was generated by the Gradle 'init' task.
|
|
*
|
|
* This generated file contains a sample Java application project to get you started.
|
|
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
|
|
* User Manual available at https://docs.gradle.org/7.3/userguide/building_java_projects.html
|
|
*/
|
|
|
|
plugins {
|
|
// Apply the application plugin to add support for building a CLI application in Java.
|
|
id "com.github.johnrengelman.shadow" version "7.1.2"
|
|
id 'java'
|
|
id 'application'
|
|
}
|
|
|
|
sourceCompatibility = '1.8'
|
|
targetCompatibility = '1.8'
|
|
|
|
configurations {
|
|
provided
|
|
compile.extendsFrom(provided)
|
|
runtime.extendsFrom(provided)
|
|
implementation.extendsFrom(provided)
|
|
}
|
|
|
|
repositories {
|
|
// Use Maven Central for resolving dependencies.
|
|
maven {
|
|
url = "https://maven.zontreck.com/repository/internal"
|
|
name = "Caches"
|
|
}
|
|
maven {
|
|
url = "https://maven.zontreck.com/repository/zontreck"
|
|
name = "ACRepo"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
provided ("com.google.code.gson:gson:2.10.1")
|
|
//implementation ("com.google.code.findbugs:jsr305:3.0.2")
|
|
provided ("com.google.guava:guava:31.1-jre")
|
|
|
|
provided ("net.sf.jopt-simple:jopt-simple:5.0.4")
|
|
//implementation ("org.apache.commons:commons-lang3:3.12.0")
|
|
provided ("org.apache.commons:commons-text:1.10.0")
|
|
provided ("commons-io:commons-io:2.11.0")
|
|
provided ("commons-codec:commons-codec:1.15")
|
|
provided ("org.apache.logging.log4j:log4j-core:2.19.0")
|
|
provided ("org.apache.logging.log4j:log4j-api:2.19.0")
|
|
provided ("dev.zontreck:LibAC:1.5.11")
|
|
|
|
|
|
}
|
|
|
|
application {
|
|
// Define the main class for the application.
|
|
mainClass = 'net.minecraft.launcher.Main'
|
|
}
|
|
|
|
configurations {
|
|
external.extendsFrom(implementation)
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes (
|
|
'Main-Class': application.mainClass,
|
|
'Multi-Release': 'true'
|
|
)
|
|
}
|
|
}
|
|
|
|
task jarjar(type: Jar) {
|
|
manifest {
|
|
attributes (
|
|
'Main-Class': application.mainClass,
|
|
'Multi-Release': 'true'
|
|
)
|
|
}
|
|
archiveClassifier = "AIO"
|
|
duplicatesStrategy = "exclude"
|
|
from { configurations.provided.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
exclude 'META-INF/*'
|
|
exclude 'META-INF/*'
|
|
exclude 'META-INF/*'
|
|
|
|
with jar
|
|
} |