Fixed resource path issues with gradle
This commit is contained in:
parent
b405f0b191
commit
64f2f598df
178 changed files with 52224 additions and 112 deletions
18
build.gradle
18
build.gradle
|
|
@ -59,13 +59,25 @@ distributions {
|
|||
from 'hal-default.db'
|
||||
from 'logging.properties'
|
||||
|
||||
project.subprojects.each { subProject ->
|
||||
from 'plugins/' + subProject.name + '/resource'
|
||||
}
|
||||
from "${buildDir}/resources"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task copyRecources(type: Copy) {
|
||||
doFirst{
|
||||
System.out.println("Copying resource files...")
|
||||
}
|
||||
|
||||
project.subprojects.each { subProject ->
|
||||
from "${subProject.projectDir}/resource"
|
||||
}
|
||||
|
||||
into("${buildDir}/resources")
|
||||
}
|
||||
|
||||
processResources.finalizedBy(copyRecources)
|
||||
|
||||
application {
|
||||
mainClass = 'se.hal.HalServer'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue