- Replaced `subprojects` with buildSrc plugins - Moved to Jetbrains Annotations over jsr305 - Removed timestamp related manifest attributes - Re-enabled the gradle module metadata, required for NeoForge now. - Changed the runs folder to `runs/<type>` for consistency
34 lines
695 B
Groovy
34 lines
695 B
Groovy
plugins {
|
|
id 'shared'
|
|
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT'
|
|
}
|
|
|
|
minecraft {
|
|
version(minecraft_version)
|
|
def aw = file("src/main/resources/${mod_id}.accesswidener")
|
|
if(aw.exists()){
|
|
accessWideners(aw)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly group:'org.spongepowered', name:'mixin', version:'0.8.5'
|
|
}
|
|
|
|
configurations {
|
|
commonJava {
|
|
canBeResolved = false
|
|
canBeConsumed = true
|
|
}
|
|
commonResources {
|
|
canBeResolved = false
|
|
canBeConsumed = true
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
commonJava sourceSets.main.java.sourceDirectories.singleFile
|
|
commonResources sourceSets.main.resources.sourceDirectories.singleFile
|
|
}
|
|
|