123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * 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
- }
|