mirror of
https://github.com/GTNewHorizons/ForgeRelocation.git
synced 2026-11-20 12:09:46 +00:00
17 lines
418 B
Groovy
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
|