diff --git a/settings.gradle.kts b/settings.gradle.kts index 1af1d0c0..ce43e72e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -23,6 +23,7 @@ project(":platform").apply { buildFileName = "root.gradle.kts" } include(":unstable:statev2") +include(":unstable:layoutdsl") listOf( "1.8.9-forge", diff --git a/unstable/layoutdsl/build.gradle.kts b/unstable/layoutdsl/build.gradle.kts new file mode 100644 index 00000000..f5f2b588 --- /dev/null +++ b/unstable/layoutdsl/build.gradle.kts @@ -0,0 +1,31 @@ +import gg.essential.gradle.util.setJvmDefault +import gg.essential.gradle.util.versionFromBuildIdAndBranch + +plugins { + kotlin("jvm") + id("gg.essential.defaults") + id("maven-publish") +} + +version = versionFromBuildIdAndBranch() +group = "gg.essential" + +dependencies { + compileOnly(project(":")) + api(project(":unstable:statev2")) +} +tasks.compileKotlin.setJvmDefault("all") + +kotlin.jvmToolchain { + (this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(8)) +} + +publishing { + publications { + register("maven") { + from(components["java"]) + + artifactId = "elementa-unstable-${project.name}" + } + } +} \ No newline at end of file