build: Improve development in subprojects

This commit is contained in:
2026-03-16 12:32:00 +01:00
parent 1b9958f980
commit d69eb85d81
6 changed files with 18 additions and 3 deletions

5
.gitignore vendored
View File

@@ -5,6 +5,11 @@ build/
!**/src/test/**/build/
.kotlin/
### Gradle in Subprojects ###
*/gradlew
*/gradlew.bat
*/gradle/wrapper
### IntelliJ IDEA ###
.idea/
*.iws

View File

@@ -1,5 +1,8 @@
import java.util.Properties
val rootProperties = Properties()
project.layout.settingsDirectory.file("../gradle.properties").asFile.inputStream().use { rootProperties.load(it) }
rootProperties.forEach { (key, value) -> project.ext.set(key.toString(), value.toString()) }
val rootPropertiesFile = project.layout.settingsDirectory.file("../gradle.properties").asFile
if (rootPropertiesFile.exists()) {
Properties()
.apply { rootPropertiesFile.inputStream().use { load(it) } }
.forEach { (key, value) -> project.ext.set(key.toString(), value.toString()) }
}

View File

@@ -1,3 +1,4 @@
org.gradle.jvmargs = -Xmx2G
org.gradle.configuration-cache = true
minecraft.version.descriptor = 1.21.10

View File

@@ -0,0 +1,2 @@
lombok.accessors.fluent = true
lombok.addLombokGeneratedAnnotation = true

2
tweed5/gradle.properties Normal file
View File

@@ -0,0 +1,2 @@
org.gradle.jvmargs = -Xmx2G
org.gradle.configuration-cache = true

2
tweed5/lombok.config Normal file
View File

@@ -0,0 +1,2 @@
lombok.accessors.fluent = true
lombok.addLombokGeneratedAnnotation = true