Run copyNotice task automatically
This commit is contained in:
1 parent
10693c5ffc
commit
d186a6ac3b
2 files changed
+8
-2
No files matched your search
@@ -19,7 +19,6 @@ Windows
|
||||
> git clone https://github.com/seven332/EhViewer
|
||||
> cd EhViewer
|
||||
> git submodule update --init
|
||||
> gradlew app:copyNotice
|
||||
> gradlew daogenerator:executeDaoGenerator
|
||||
> gradlew app:assembleDebug
|
||||
|
||||
@@ -28,7 +27,6 @@ Linux
|
||||
$ git clone https://github.com/seven332/EhViewer
|
||||
$ cd EhViewer
|
||||
$ git submodule update --init
|
||||
$ ./gradlew app:copyNotice
|
||||
$ ./gradlew daogenerator:executeDaoGenerator
|
||||
$ ./gradlew app:assembleDebug
|
||||
|
||||
|
||||
@@ -46,6 +46,14 @@ task copyNotice(type: Copy) {
|
||||
into './src/main/assets'
|
||||
}
|
||||
|
||||
tasks.withType(AbstractCompile) {
|
||||
compileTask -> compileTask.dependsOn copyNotice
|
||||
}
|
||||
|
||||
clean {
|
||||
delete file('src/main/assets/NOTICE.html').absolutePath
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':beerbelly')
|
||||
compile project(':conaco')
|
||||
|
||||
Reference in new issue
Block a user