LaunchWrapper/build.gradle
zontreck ffa17a36af
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
Alter some variables
2024-07-12 04:20:20 -07:00

79 lines
1.5 KiB
Groovy

plugins {
id 'java'
id 'maven-publish'
}
repositories {
flatDir {
dirs "libs"
}
maven {
url "https://libraries.minecraft.net/"
}
maven {
url "https://maven.zontreck.com/repository/internal"
}
maven {
url "https://maven.zontreck.com/repository/zontreck"
}
mavenCentral()
}
group = 'dev.zontreck'
archivesBaseName = 'launchwrapper'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.5
targetCompatibility = 1.5
dependencies {
implementation 'dev.zontreck:RetroDebugInjector:1.0'
implementation 'org.ow2.asm:asm:9.3'
implementation 'org.ow2.asm:asm-tree:9.3'
implementation 'org.json:json:20230311'
// I'll bring discord RPC support later, when I have an environment to compile natives
testImplementation 'junit:junit:4.12'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.0'
}
test {
useJUnitPlatform()
}
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
}
}
}
}
}
}