mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -04:00
Fix build.gradle for Gradle 2.x, copy over assets automatically for IntelliJ
This commit is contained in:
parent
484fac6ecd
commit
7f29eb6ada
11
build.gradle
11
build.gradle
@ -175,9 +175,9 @@ dependencies {
|
||||
embedded files('libs/OpenComputers-JNLua.jar', 'libs/OpenComputers-LuaJ.jar')
|
||||
}
|
||||
|
||||
idea.module.scopes.PROVIDED.plus += configurations.provided
|
||||
idea.module.scopes.PROVIDED.plus += [configurations.provided]
|
||||
// TODO Causes errors on Gradle 2 for me (No such property: allDependencies for class: java.io.File).
|
||||
//eclipse.classpath.plusConfigurations += configurations.provided
|
||||
//eclipse.classpath.plusConfigurations += [configurations.provided]
|
||||
|
||||
minecraft {
|
||||
version = "${config.minecraft.version}-${config.forge.version}"
|
||||
@ -278,3 +278,10 @@ publishing {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// this is needed for IntelliJ so we don't have to copy over the assets manually every time
|
||||
sourceSets {
|
||||
main {
|
||||
output.resourcesDir = output.classesDir
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user