-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbuild.gradle
40 lines (33 loc) · 853 Bytes
/
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
//version: 1707058017
plugins {
id 'com.gtnewhorizons.gtnhconvention'
id 'idea'
}
version = "1.9.3"
group= "kamkeel.customnpc-plus"
archivesBaseName = "CustomNPC-Plus"
def embedMixin = !project.hasProperty("nomixin");
if(!embedMixin){
version += "-nomixin"
}
// API Task
tasks.create('updateAPI', Exec) {
description 'Updates (and Inits) git submodules'
commandLine 'git', 'submodule', 'update', '--init', '--recursive'
group 'CustomNPC+'
}
// No Mixin Build Task
tasks.create('buildNoMixin', Exec) {
description 'Builds mod without embed'
group 'CustomNPC+'
commandLine 'build', '-Pnomixin'
}
sourceSets {
named("main").configure {
java {
srcDirs += ['src/api/java']
}
}
}
// Modify the existing 'build' task to depend on 'updateAPI'
tasks.apiClasses.dependsOn 'updateAPI'