LaunchWrapper/build.gradle
2023-08-06 20:02:48 +03:00

69 lines
1.2 KiB
Groovy

plugins {
id 'java'
id 'eclipse'
id 'maven-publish'
}
repositories {
flatDir {
dirs "libs"
}
maven {
url "https://mcphackers.github.io/libraries/"
}
maven {
url "https://libraries.minecraft.net/"
}
mavenCentral()
}
group = 'org.mcphackers'
archivesBaseName = 'launchwrapper'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.5
dependencies {
implementation 'org.mcphackers.rdi:rdi:1.0'
implementation 'org.ow2.asm:asm:9.3'
implementation 'org.ow2.asm:asm-tree:9.3'
implementation 'org.json:json:20230311'
// implementation name: 'discord-rpc-1.6.2'
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives sourcesJar
}
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
}
}
}
}
}
}