Skip to content

Instantly share code, notes, and snippets.

@AbrarSyed
Last active August 29, 2015 05:40
Show Gist options
  • Save AbrarSyed/5434d7ccf0c91f782777 to your computer and use it in GitHub Desktop.
Save AbrarSyed/5434d7ccf0c91f782777 to your computer and use it in GitHub Desktop.
task processSources(type: Copy) {
from (sourceSets.main.java) {
include "**/SpongeWorldEdit.java"
filter { line -> line.replaceAll("%VERSION%", project.version) }
}
from (sourceSets.main.java) {
exclude "**/SpongeWorldEdit.java"
}
into 'build/sources/main/java'
}
compileJava {
source = file('build/sources/main/java')
dependsOn processSources
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment