2023-08-06 10:02:48 -07:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
|
|
|
}
|
2022-11-10 03:52:25 -07:00
|
|
|
|
|
|
|
repositories {
|
2023-08-06 10:02:48 -07:00
|
|
|
flatDir {
|
|
|
|
dirs "libs"
|
|
|
|
}
|
2023-02-04 04:56:49 -07:00
|
|
|
maven {
|
|
|
|
url "https://mcphackers.github.io/libraries/"
|
|
|
|
}
|
2022-11-10 03:52:25 -07:00
|
|
|
maven {
|
|
|
|
url "https://libraries.minecraft.net/"
|
|
|
|
}
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'org.mcphackers'
|
|
|
|
archivesBaseName = 'launchwrapper'
|
2023-08-06 10:02:48 -07:00
|
|
|
version = '1.0-SNAPSHOT'
|
2023-03-06 06:11:36 -07:00
|
|
|
sourceCompatibility = 1.5
|
2023-08-25 01:06:07 -07:00
|
|
|
targetCompatibility = 1.5
|
2022-11-10 03:52:25 -07:00
|
|
|
|
|
|
|
dependencies {
|
2023-03-18 11:23:17 -07:00
|
|
|
implementation 'org.mcphackers.rdi:rdi:1.0'
|
2022-11-10 03:52:25 -07:00
|
|
|
implementation 'org.ow2.asm:asm:9.3'
|
|
|
|
implementation 'org.ow2.asm:asm-tree:9.3'
|
2023-03-12 15:50:07 -07:00
|
|
|
implementation 'org.json:json:20230311'
|
2023-08-25 01:06:07 -07:00
|
|
|
// I'll bring discord RPC support later, when I have an environment to compile natives
|
|
|
|
|
|
|
|
testCompileOnly 'junit:junit:4.12'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.0.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2022-11-10 03:52:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
2023-08-06 10:02:48 -07:00
|
|
|
archiveClassifier = 'sources'
|
2022-11-10 03:52:25 -07:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives jar
|
|
|
|
archives sourcesJar
|
2023-08-06 10:02:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
artifactId = archivesBaseName
|
|
|
|
|
|
|
|
artifact jar
|
|
|
|
artifact sourcesJar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
|
|
|
|
def ENV = System.getenv()
|
|
|
|
if (ENV.MAVEN_URL) {
|
|
|
|
maven {
|
|
|
|
url ENV.MAVEN_URL
|
|
|
|
if (ENV.MAVEN_USERNAME) {
|
|
|
|
credentials {
|
|
|
|
username ENV.MAVEN_USERNAME
|
|
|
|
password ENV.MAVEN_PASSWORD
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|