Skip to content

Commit

Permalink
Allow at in remap spigot, bump 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Jul 5, 2020
1 parent 182dc53 commit c163b46
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'io.izzel.arclight'
version '1.6'
version '1.7'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class ArclightGradlePlugin implements Plugin<Project> {
task.inheritanceMap = new File(processMapping.outDir, 'inheritanceMap.txt')
task.outJar = project.file("${project.buildDir}/arclight_cache/spigot-${arclightExt.mcVersion}-mapped.jar")
task.outDeobf = project.file("${project.buildDir}/arclight_cache/spigot-${arclightExt.mcVersion}-mapped-deobf.jar")
task.inAt = arclightExt.accessTransformer
task.dependsOn(processMapping)
if (arclightExt.wipeVersion && !task.bukkitVersion) {
task.bukkitVersion = arclightExt.bukkitVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class RemapSpigotTask extends DefaultTask {
private List<String> includes
private List<String> excludes
private String bukkitVersion
private File inAt

RemapSpigotTask() {
includes = new ArrayList<>()
Expand Down Expand Up @@ -70,6 +71,10 @@ class RemapSpigotTask extends DefaultTask {
args.add('-m')
args.add(tmpSrg.toFile().canonicalPath)
}
if (inAt) {
args.add('--access-transformer')
args.add(inAt.canonicalPath)
}
project.exec {
commandLine = args
standardOutput = System.out
Expand Down Expand Up @@ -188,4 +193,14 @@ class RemapSpigotTask extends DefaultTask {
void setBukkitVersion(String bukkitVersion) {
this.bukkitVersion = bukkitVersion
}

@InputFile
@Optional
File getInAt() {
return inAt
}

void setInAt(File inAt) {
this.inAt = inAt
}
}

0 comments on commit c163b46

Please sign in to comment.