-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (39 loc) · 1 KB
/
build.gradle
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
import com.xpdustry.toxopid.spec.ModMetadata
import com.xpdustry.toxopid.spec.ModPlatform
plugins {
id "java"
id "com.xpdustry.toxopid" version "4.1.0"
}
def metadata = ModMetadata.fromJson(file("src/main/resources/plugin.json"))
group = "com.xpdustry"
version = metadata.version
description = metadata.description
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
maven { url "https://maven.xpdustry.com/mindustry" }
maven { url "https://www.jitpack.io" }
}
toxopid {
compileVersion = "v${metadata.minGameVersion}"
platforms = [ModPlatform.SERVER]
}
dependencies {
compileOnly toxopid.dependencies.arcCore
compileOnly toxopid.dependencies.mindustryCore
// For SLF4MD compatibility
compileOnly "org.slf4j:slf4j-api:2.0.16"
}
jar {
archiveFileName = "${metadata.name}.jar"
//copy the builded jar to the working directory
doLast {
copy {
from jar
into "."
}
}
}