Files

46 lines
943 B
Groovy
Raw Permalink 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
}
2025-06-09 09:35:26 -05:00
java {
toolchain {
2025-06-09 23:03:46 -05:00
languageVersion.set(JavaLanguageVersion.of(8))
2025-06-09 09:35:26 -05:00
}
}
2025-06-03 19:06:34 -04:00
version = "1.10.2"
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'