-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (58 loc) · 1.9 KB
/
build.gradle
File metadata and controls
72 lines (58 loc) · 1.9 KB
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 {
id "com.github.nekit508.mindustry-mod-plugin" version "$nmpVersion" apply true
}
allprojects.each { project ->
project.repositories {
mavenCentral()
mavenLocal()
maven { url "https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository" }
maven { url "https://www.jitpack.io" }
}
project.apply plugin: "java"
}
apply plugin: "java-library"
apply plugin: "maven-publish"
nmp.core project, "core"
nmp.entityAnno project, "eanno", core
group = modGroup
version = modVersion
core.configure {
genericModInit()
core.configureTasks {
nmpGenerateModInfo { task ->
task.set(
"displayName": "Fictional Octo System",
"description": "FOS is a large-scale mod with a campaign that contains a brand-new solar system and unique mechanics.",
"author": "Team Oct",
"subtitle": "See you later!",
"repo": "TeamOct/FOS",
"java": true,
"main": "fos.core.FOSMod",
"hidden": false
)
}
}
tasks.nmpBuild.from project.file("mod.json")
tasks.nmpBuild.from project.file("icon.png")
dependencies {
implementation "com.github.liplum:MultiCrafterLib:$multiCrafterLibVersion"
compileOnly nmp.arcDependency(mindustryVersion.get(), "discord")
compileOnly nmp.arcDependency(mindustryVersion.get(), "backend-sdl")
}
}
core.settings {
modName.set gameModName
modGroup.set group as String
modVersion.set version as String
mindustryVersion.set prop("mindustryVersion") as String
generateModInfo.set true
}
eanno.settings {
genPackage.set modGen
modCompsPackage.set modComps
fetchedCompsPackage.set fetchedComps
entityAnnoVersion.set prop("entityAnnoVersion") as String
}
eanno.configure {
genericInit()
}