build: Improve development in subprojects
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -5,6 +5,11 @@ build/
|
|||||||
!**/src/test/**/build/
|
!**/src/test/**/build/
|
||||||
.kotlin/
|
.kotlin/
|
||||||
|
|
||||||
|
### Gradle in Subprojects ###
|
||||||
|
*/gradlew
|
||||||
|
*/gradlew.bat
|
||||||
|
*/gradle/wrapper
|
||||||
|
|
||||||
### IntelliJ IDEA ###
|
### IntelliJ IDEA ###
|
||||||
.idea/
|
.idea/
|
||||||
*.iws
|
*.iws
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import java.util.Properties
|
import java.util.Properties
|
||||||
|
|
||||||
val rootProperties = Properties()
|
val rootPropertiesFile = project.layout.settingsDirectory.file("../gradle.properties").asFile
|
||||||
project.layout.settingsDirectory.file("../gradle.properties").asFile.inputStream().use { rootProperties.load(it) }
|
if (rootPropertiesFile.exists()) {
|
||||||
rootProperties.forEach { (key, value) -> project.ext.set(key.toString(), value.toString()) }
|
Properties()
|
||||||
|
.apply { rootPropertiesFile.inputStream().use { load(it) } }
|
||||||
|
.forEach { (key, value) -> project.ext.set(key.toString(), value.toString()) }
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
org.gradle.jvmargs = -Xmx2G
|
org.gradle.jvmargs = -Xmx2G
|
||||||
|
org.gradle.configuration-cache = true
|
||||||
|
|
||||||
minecraft.version.descriptor = 1.21.10
|
minecraft.version.descriptor = 1.21.10
|
||||||
|
|||||||
2
tweed5-minecraft/lombok.config
Normal file
2
tweed5-minecraft/lombok.config
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
lombok.accessors.fluent = true
|
||||||
|
lombok.addLombokGeneratedAnnotation = true
|
||||||
2
tweed5/gradle.properties
Normal file
2
tweed5/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
org.gradle.jvmargs = -Xmx2G
|
||||||
|
org.gradle.configuration-cache = true
|
||||||
2
tweed5/lombok.config
Normal file
2
tweed5/lombok.config
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
lombok.accessors.fluent = true
|
||||||
|
lombok.addLombokGeneratedAnnotation = true
|
||||||
Reference in New Issue
Block a user