-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (46 loc) · 1.42 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
plugins {
`java-library`
`maven-publish`
}
version = "1.0.0"
repositories {
mavenLocal()
mavenCentral()
maven("https://www.jitpack.io")
}
publishing {
publications {
create<MavenPublication>("release") {
from(components["java"])
groupId = "inside.commands"
artifactId = "commands-lib"
//version = project.version
pom {
name.set("CommandsLib")
description.set("Library for Mindustry plugins and mods for convenient, safe and easy command registering.")
url.set("https://github.com/MindustryInside/CommandsLib")
}
}
}
repositories {
maven("https://jitpack.io")
}
}
val mindustryVerion = "v144.1"
dependencies {
compileOnly("com.github.Anuken.Arc:arc-core:$mindustryVerion")
compileOnly("com.github.Anuken.Mindustry:core:$mindustryVerion")
compileOnly("com.github.Anuken.Mindustry:server:$mindustryVerion")
testCompileOnly("com.github.Anuken.Arc:arc-core:$mindustryVerion")
testCompileOnly("com.github.Anuken.Mindustry:core:$mindustryVerion")
testCompileOnly("com.github.Anuken.Mindustry:server:$mindustryVerion")
}
tasks.withType<JavaCompile> {
options.release.set(17)
}
tasks.withType<Jar> {
manifest {
attributes("Automatic-Module-Name" to "inside.commandslib")
attributes("Implementation-Version" to version)
}
}