-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
72 lines (63 loc) · 2.23 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
plugins {
java
id("java-gradle-plugin")
id("maven-publish")
id("com.gradle.plugin-publish") version "0.12.0"
}
group = "com.solarmc"
version = "1.2-SNAPSHOT"
repositories {
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://maven.quiltmc.org/")
maven(url = "https://maven.fabricmc.net/")
maven(url = "https://jitpack.io")
maven(url = "gcs://devan-maven")
mavenCentral()
}
dependencies {
// Mapping
implementation("cuchaz", "enigma-swing", "0.27.3")
// Misc Libraries
implementation("javax.servlet", "javax.servlet-api", "3.0.1")
implementation("com.fasterxml.jackson.core", "jackson-databind", "2.12.3")
implementation("com.google.guava", "guava", "30.1.1-jre")
implementation("org.jetbrains", "annotations", "20.1.0")
// Remapping & Bytecode Modification
implementation("net.fabricmc", "tiny-remapper", "0.3.2")
implementation("net.fabricmc", "lorenz-tiny", "3.0.0")
implementation("org.ow2.asm", "asm", "9.1")
implementation("org.ow2.asm", "asm-commons", "9.1")
// Patching
implementation("io.sigpipe", "jbsdiff", "1.0")
implementation("com.github.Solar-MC", "javaxdelta", "efb21b70b7")
// IO
implementation("org.zeroturnaround", "zt-zip", "1.14")
implementation("com.google.code.gson", "gson", "2.8.6")
implementation("commons-io", "commons-io", "2.8.0")
}
gradlePlugin {
plugins {
create("Eclipse") {
displayName = "Solar Eclipse"
id = "com.solarmc.eclipse"
implementationClass = "com.solarmc.eclipse.EclipsePlugin"
}
}
}
publishing {
repositories {
// Add repositories to publish to here.
if (project.hasProperty("maven_url")) {
maven {
val mavenUrl = project.property("maven_url") as String
url = uri(mavenUrl)
if (mavenUrl.startsWith("http") && project.hasProperty("maven_username") && project.hasProperty("maven_password")) {
credentials {
username = project.property("maven_username") as String
password = project.property("maven_password") as String
}
}
}
}
}
}