LaunchWrapper/build.gradle

70 lines
1.2 KiB
Groovy
Raw Normal View History

2023-08-06 10:02:48 -07:00
plugins {
id 'java'
id 'eclipse'
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
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-06 10:02:48 -07:00
// implementation name: 'discord-rpc-1.6.2'
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
}
}
}
}
}
}