-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These are (successful) experiments, originally developed internally at Essential, of future Elementa features. While a feature is classified as an unstable project, no guarantees with respect to backwards compatibility are made. We will however attempt to avoid non-obvious behavioral changes and try to provide a gradual migration path where possible. Note: Due to these features not being backwards compatible, they are also not yet included in the main Elementa publication (which does guarantee indefinite backwards compatibility). Instead if you want to use one of these, you must depend on the respective unstable artifact, relocate it to a dedicated package within your mod and bundle this relocated version in your jar (that way your mod always gets the version it needs, and you can freely choose when to upgrade to a newer version). GitHub: #134 Co-authored-by: Jonas Herzig <jonas@spark-squared.com>
- Loading branch information
Showing
4 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import gg.essential.gradle.multiversion.StripReferencesTransform.Companion.registerStripReferencesAttribute | ||
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")) | ||
|
||
val common = registerStripReferencesAttribute("common") { | ||
excludes.add("net.minecraft") | ||
} | ||
compileOnly(libs.versions.universalcraft.map { "gg.essential:universalcraft-1.8.9-forge:$it" }) { | ||
attributes { attribute(common, true) } | ||
} | ||
} | ||
tasks.compileKotlin.setJvmDefault("all") | ||
|
||
kotlin.jvmToolchain { | ||
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(8)) | ||
} | ||
|
||
publishing { | ||
publications { | ||
register<MavenPublication>("maven") { | ||
from(components["java"]) | ||
|
||
artifactId = "elementa-unstable-${project.name}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import gg.essential.gradle.multiversion.StripReferencesTransform.Companion.registerStripReferencesAttribute | ||
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(":")) | ||
|
||
val common = registerStripReferencesAttribute("common") { | ||
excludes.add("net.minecraft") | ||
} | ||
compileOnly(libs.versions.universalcraft.map { "gg.essential:universalcraft-1.8.9-forge:$it" }) { | ||
attributes { attribute(common, true) } | ||
} | ||
} | ||
tasks.compileKotlin.setJvmDefault("all") | ||
|
||
kotlin.jvmToolchain { | ||
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(8)) | ||
} | ||
|
||
publishing { | ||
publications { | ||
register<MavenPublication>("maven") { | ||
from(components["java"]) | ||
|
||
artifactId = "elementa-unstable-${project.name}" | ||
} | ||
} | ||
} |