Bump to 3.2, update transformer to 2.4

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-05-15 22:28:38 +08:00
parent d40cc3a3f1
commit f8d61a5ae2
4 changed files with 8 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ repositories {
maven { url "https://maven.minecraftforge.net/" }
maven { url "https://maven.shedaniel.me/" }
gradlePluginPortal()
mavenLocal()
}
apply plugin: 'java-gradle-plugin'

View File

@@ -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

View File

@@ -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

View File

@@ -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()