31 lines
738 B
Groovy
31 lines
738 B
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'java'
|
|
}
|
|
|
|
apply from: '../../android/dependencies.gradle'
|
|
|
|
dependencies {
|
|
api project(':logging-api')
|
|
}
|
|
|
|
java {
|
|
var boardDir = System.getenv("ABSOLUTE_BOARD_DIR")
|
|
println("gradle says: ABSOLUTE_BOARD_DIR=" + boardDir)
|
|
if (boardDir != null) {
|
|
var customResourcesFolder = boardDir + "/shared_io.resources"
|
|
if (new File(customResourcesFolder).exists()) {
|
|
println(customResourcesFolder + " found!")
|
|
processResources {
|
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
|
from(customResourcesFolder)
|
|
}
|
|
} else {
|
|
println(customResourcesFolder + " not found.")
|
|
}
|
|
}
|
|
}
|
|
|
|
// TODO: rename folder to core_io
|
|
// this CORE module cannot depend on model/ini!
|