forked from DexPatcher/dexpatcher-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure-artifacts.gradle
38 lines (34 loc) · 960 Bytes
/
configure-artifacts.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* DexPatcher - Copyright 2015-2020 Rodrigo Balerdi
* (GNU General Public License version 3 or later)
*
* DexPatcher is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*/
java {
withJavadocJar()
withSourcesJar()
}
processResources {
from(rootDir) {
include 'README.txt'
include 'NOTICE.txt'
include 'LICENSE.txt'
into 'META-INF/about'
}
}
def sharedManifest = manifest {
attributes(
'Implementation-Title': artifactName,
'Implementation-Version': version
)
}
tasks.withType(Jar).configureEach {
archiveBaseName.set mainArtifact
manifest.from sharedManifest
reproducibleFileOrder = true
preserveFileTimestamps = false
duplicatesStrategy = DuplicatesStrategy.FAIL
}