multidexlib2/configure-artifacts.gradle
2020-01-19 14:11:13 -03:00

39 lines
964 B
Groovy

/*
* multidexlib2 - Copyright 2015-2020 Rodrigo Balerdi
* (GNU General Public License version 3 or later)
*
* multidexlib2 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
}