Files
CustomNPC-Plus/build.gradle
T

40 lines
853 B
Groovy
Raw Normal View History

2024-02-13 01:27:30 -05:00
//version: 1707058017
plugins {
id 'com.gtnewhorizons.gtnhconvention'
2024-02-13 14:32:32 -05:00
id 'idea'
2024-02-13 01:27:30 -05:00
}
2024-04-11 18:00:46 -04:00
version = "1.9.3"
2024-02-13 01:27:30 -05:00
group= "kamkeel.customnpc-plus"
archivesBaseName = "CustomNPC-Plus"
def embedMixin = !project.hasProperty("nomixin");
if(!embedMixin){
version += "-nomixin"
2021-04-27 11:56:36 -04:00
}
2024-02-13 14:32:32 -05:00
// API Task
tasks.create('updateAPI', Exec) {
description 'Updates (and Inits) git submodules'
2022-11-25 16:20:16 -05:00
commandLine 'git', 'submodule', 'update', '--init', '--recursive'
2024-02-13 14:32:32 -05:00
group 'CustomNPC+'
2022-11-25 16:20:16 -05:00
}
2024-02-13 14:32:32 -05:00
// 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']
2022-11-15 15:25:53 -05:00
}
}
2021-04-27 11:56:36 -04:00
}
2024-03-20 02:38:57 -04:00
// Modify the existing 'build' task to depend on 'updateAPI'
tasks.apiClasses.dependsOn 'updateAPI'