1- import org.slf4j.event.Level
2-
3- plugins {
4- id(" java" )
5- id(" eclipse" )
6- id(" idea" )
7- id(" maven-publish" )
8- alias(neoforged.plugins.userdev)
9- }
10-
11- val modId: String = " compactmachines"
12-
13- val coreApi = project(" :core-api" )
14- val mainProject: Project = project(" :neoforge-main" )
15-
16- project.evaluationDependsOn(coreApi.path)
17- project.evaluationDependsOn(mainProject.path)
18-
19- java {
20- toolchain.languageVersion.set(JavaLanguageVersion .of(21 ))
21- }
22-
23- minecraft {
24- modIdentifier.set(modId)
25- }
26-
27- runs {
28- // applies to all the run configs below
29- configureEach {
30- systemProperty(" forge.logging.markers" , " " )
31- systemProperty(" forge.logging.console.level" , " debug" )
32-
33- modSources {
34- add(modId, project.sourceSets.main.get())
35- add(modId, mainProject.sourceSets.main.get())
36- add(modId, coreApi.sourceSets.main.get())
37- }
38- }
39-
40- create(" data" ) {
41- dataGenerator(true )
42-
43- programArguments(" --mod" , " compactmachines" )
44- programArguments(" --all" )
45- programArguments(" --output" , mainProject.file(" src/generated/resources" ).absolutePath)
46- programArguments(" --existing" , mainProject.file(" src/main/resources" ).absolutePath)
47- }
48- }
49-
50- repositories {
51- mavenLocal()
52- }
53-
54- dependencies {
55- compileOnly(coreApi)
56- compileOnly(mainProject)
57-
58- implementation(neoforged.neoforge)
59- }
60-
61- tasks.compileJava {
62- options.encoding = " UTF-8" ;
63- }
64-
65- tasks.withType<ProcessResources > {
66- duplicatesStrategy = DuplicatesStrategy .EXCLUDE
67- }
1+ // import org.slf4j.event.Level
2+ //
3+ // plugins {
4+ // id("java")
5+ // id("eclipse")
6+ // id("idea")
7+ // id("maven-publish")
8+ // alias(neoforged.plugins.userdev)
9+ // }
10+ //
11+ // val modId: String = "compactmachines"
12+ //
13+ // val coreApi = project(":core-api")
14+ // val mainProject: Project = project(":neoforge-main")
15+ //
16+ // project.evaluationDependsOn(coreApi.path)
17+ // project.evaluationDependsOn(mainProject.path)
18+ //
19+ // java {
20+ // toolchain.languageVersion.set(JavaLanguageVersion.of(21))
21+ // }
22+ //
23+ // minecraft {
24+ // modIdentifier.set(modId)
25+ // }
26+ //
27+ // runs {
28+ // // applies to all the run configs below
29+ // configureEach {
30+ // systemProperty("forge.logging.markers", "")
31+ // systemProperty("forge.logging.console.level", "debug")
32+ //
33+ // modSources {
34+ // add(modId, project.sourceSets.main.get())
35+ // add(modId, mainProject.sourceSets.main.get())
36+ // add(modId, coreApi.sourceSets.main.get())
37+ // }
38+ // }
39+ //
40+ // create("data") {
41+ // dataGenerator(true)
42+ //
43+ // programArguments("--mod", "compactmachines")
44+ // programArguments("--all")
45+ // programArguments("--output", mainProject.file("src/generated/resources").absolutePath)
46+ // programArguments("--existing", mainProject.file("src/main/resources").absolutePath)
47+ // }
48+ // }
49+ //
50+ // repositories {
51+ // mavenLocal()
52+ // }
53+ //
54+ // dependencies {
55+ // compileOnly(coreApi)
56+ // compileOnly(mainProject)
57+ //
58+ // implementation(neoforged.neoforge)
59+ // }
60+ //
61+ // tasks.compileJava {
62+ // options.encoding = "UTF-8";
63+ // }
64+ //
65+ // tasks.withType<ProcessResources> {
66+ // duplicatesStrategy = DuplicatesStrategy.EXCLUDE
67+ // }
0 commit comments