LaunchWrapper/build.gradle

74 lines
1.7 KiB
Groovy
Raw Permalink Normal View History

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 {
2024-07-12 04:20:20 -07:00
url "https://libraries.minecraft.net/"
2023-02-04 04:56:49 -07:00
}
2022-11-10 03:52:25 -07:00
maven {
2024-07-12 04:20:20 -07:00
url "https://maven.zontreck.com/repository/internal"
}
maven {
url "https://maven.zontreck.com/repository/zontreck"
2022-11-10 03:52:25 -07:00
}
mavenCentral()
}
2024-07-12 04:20:20 -07:00
group = 'dev.zontreck'
2022-11-10 03:52:25 -07:00
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 {
2024-07-12 04:20:20 -07:00
implementation 'dev.zontreck:RetroDebugInjector: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
2023-09-01 14:08:10 -07:00
testImplementation 'junit:junit:4.12'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.0'
2023-08-25 01:06:07 -07:00
}
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
}
2024-07-12 04:24:59 -07:00
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
2023-08-06 10:02:48 -07:00
publishing {
publications {
mavenJava(MavenPublication) {
2024-07-12 04:24:59 -07:00
artifact jar
artifact sourcesJar
}
}
repositories {
maven {
url = "https://maven.zontreck.com/repository/zontreck"
name = "ariascreations"
if (project.findProperty(MAVEN_PASSWORD_PROPERTY) != null) {
credentials {
username = "admin"
password = project.findProperty(MAVEN_PASSWORD_PROPERTY)
}
}
2023-08-06 10:02:48 -07:00
}
}
}