Files
ForgeRelocation/addon.gradle
T
2022-12-15 00:43:53 +01:00

17 lines
418 B
Groovy

jar {
manifest {
attributes 'FMLCorePlugin': 'mrtjp.relocation.asm.RelocationPlugin'
}
}
import org.apache.tools.ant.filters.ReplaceTokens
task updateAPIVersion(type: Copy) {
from(sourceSets.main.scala.srcDirs)
include '**/package-info.java'
into 'build/sources/scala'
filter(ReplaceTokens, tokens: ['GRADLETOKEN_VERSION': project.version])
}
compileScala.dependsOn updateAPIVersion