-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
62 lines (52 loc) · 1.35 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
plugins {
java
`java-library`
application
`maven-publish`
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "io.github.gaming32"
version = "1.0.6"
application {
mainClass.set("io.github.gaming32.prcraftinstaller.PrcraftInstaller")
}
repositories {
mavenCentral()
maven("https://maven.fabricmc.net") {
name = "Fabric"
}
maven("https://maven.jemnetworks.com/releases")
}
dependencies {
api("commons-io:commons-io:2.13.0")
api("com.nitorcreations:javaxdelta:1.5")
api("net.fabricmc:tiny-remapper:0.8.7")
api("org.apache.commons:commons-compress:1.23.0")
api("io.github.prcraftmc:strip-lib:0.1.7")
}
tasks.jar {
manifest {
attributes["Main-Class"] = application.mainClass.get()
}
}
java {
withSourcesJar()
}
publishing {
repositories {
maven {
name = "gaming32"
credentials(PasswordCredentials::class)
val baseUri = "https://maven.jemnetworks.com"
url = uri(baseUri + if (version.toString().endsWith("-SNAPSHOT")) "/snapshots" else "/releases")
}
}
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
}
}