File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,19 +30,10 @@ sourceSets {
3030
3131dependencies {
3232 val libraryVersion = " 1.11.2.3"
33- val mindustryVersion = " v2025.04.X2 " // v147
33+ val mindustryVersion = " v2025.04.X3 " // v147
3434 api(" cf.wayzer:ScriptAgent:$libraryVersion " )
3535 implementation(" cf.wayzer:LibraryManager:1.6" )
3636 compileOnly(" com.github.TinyLake.MindustryX:core:$mindustryVersion " )
37-
38- subprojects {
39- apply (plugin = " kotlin" )
40- dependencies {
41- api(rootProject)
42- api(kotlin(" script-runtime" ))
43- kotlinScriptDef(rootProject)
44- }
45- }
4637}
4738
4839kotlin {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.gradle.api.Project
44import org.gradle.api.artifacts.dsl.DependencyHandler
55import org.gradle.api.tasks.SourceSet
66import org.gradle.api.tasks.SourceSetContainer
7+ import org.gradle.kotlin.dsl.kotlin
78import org.gradle.kotlin.dsl.project
89
910class ModuleScope (val moduleId : String , private val project : Project , private val sourceSet : SourceSet ) {
@@ -31,7 +32,8 @@ fun Project.defineModule(
3132 }
3233 ModuleScope (name, project, sourceSet).apply {
3334 dependencies.apply {
34- api(project(" ::scripts" ))
35+ implementation(kotlin(" script-runtime" ))
36+ implementation(rootProject)
3537 }
3638 body()
3739 }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44 kotlin(" jvm" )
55}
66dependencies {
7- val mindustryVersion = " ca40f700fb " // v146.004
7+ val mindustryVersion = " v2025.04.X3 " // v146.004
88
99 defineModule(" bootStrap" ) {}
1010 defineModule(" coreLibrary" ) {
@@ -61,7 +61,4 @@ allprojects {
6161 )
6262 }
6363 }
64- tasks.named(" build" ) {
65- enabled = false
66- }
6764}
You can’t perform that action at this time.
0 commit comments