Arclight/build.gradle

39 lines
1.1 KiB
Groovy
Raw Normal View History

import java.nio.file.*
import java.nio.file.attribute.BasicFileAttributes
2020-05-16 06:22:29 +00:00
allprojects {
group 'io.izzel.arclight'
2020-07-23 03:44:36 +00:00
version '1.0.3'
2020-06-16 08:18:26 +00:00
ext {
2020-07-05 09:29:40 +00:00
agpVersion = '1.7'
2020-06-16 08:18:26 +00:00
}
task cleanBuild {
doFirst {
def f = project.file("build/libs")
if (Files.exists(f.toPath())) {
Files.walkFileTree(f.toPath(), new SimpleFileVisitor<Path>() {
@Override
FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
Files.delete(file)
return FileVisitResult.CONTINUE
}
@Override
FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
Files.delete(dir)
return FileVisitResult.CONTINUE
}
})
}
}
}
2020-05-16 06:22:29 +00:00
}
task collect(type: Copy) {
destinationDir = file('build/libs')
subprojects.each { p ->
from p.file('build/libs')
}
}