mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-28 04:07:01 -05:00
Bump to 3.2, update transformer to 2.4
Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
@@ -28,6 +28,7 @@ repositories {
|
||||
maven { url "https://maven.minecraftforge.net/" }
|
||||
maven { url "https://maven.shedaniel.me/" }
|
||||
gradlePluginPortal()
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
apply plugin: 'java-gradle-plugin'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
kotlin.code.style=official
|
||||
loom_version=0.6.96
|
||||
transformer_version=2.3.43
|
||||
base_version=3.1
|
||||
transformer_version=2.4.44
|
||||
base_version=3.2
|
||||
@@ -19,7 +19,7 @@ import java.util.jar.JarOutputStream
|
||||
import java.util.jar.Manifest
|
||||
|
||||
open class ArchitectPluginExtension(val project: Project) {
|
||||
var transformerVersion = "2.3.43"
|
||||
var transformerVersion = "2.4.44"
|
||||
var injectablesVersion = "1.0.8"
|
||||
var minecraft = ""
|
||||
var injectInjectables = true
|
||||
|
||||
@@ -33,7 +33,8 @@ open class TransformingTask : Jar() {
|
||||
val input: Path = this.input.asFile.get().toPath()
|
||||
val output: Path = this.archiveFile.get().asFile.toPath()
|
||||
|
||||
project.extensions.getByType(ArchitectPluginExtension::class.java).properties(platform ?: throw NullPointerException("No Platform specified")).forEach { (key, value) ->
|
||||
val extension = project.extensions.getByType(ArchitectPluginExtension::class.java)
|
||||
extension.properties(platform ?: throw NullPointerException("No Platform specified")).forEach { (key, value) ->
|
||||
System.setProperty(key, value)
|
||||
}
|
||||
System.setProperty(BuiltinProperties.LOCATION, project.file(".gradle").absolutePath)
|
||||
@@ -69,3 +70,5 @@ fun Project.projectUniqueIdentifier(): String {
|
||||
if (project.rootProject != project) name = project.rootProject.name + "_" + name
|
||||
return "architectury_inject_${name}_$id".filter { Character.isJavaIdentifierPart(it) }
|
||||
}
|
||||
|
||||
class Epic : RuntimeException()
|
||||
|
||||
Reference in New Issue
Block a user