| 1 |
Description: patching build.gradle to perform a Debian build |
| 2 |
Author: Pierre Gruet <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
Last-Update: 2021-04-29 |
| 5 |
|
| 6 |
--- a/build.gradle |
| 7 |
+++ b/build.gradle |
| 8 |
@@ -1,9 +1,9 @@ |
| 9 |
plugins { |
| 10 |
id 'java' |
| 11 |
|
| 12 |
+ // id 'com.github.johnrengelman.shadow' version '1.2.3' |
| 13 |
id 'maven' |
| 14 |
|
| 15 |
|
| 16 |
+ // id 'signing' |
| 17 |
+ // id 'io.codearte.nexus-staging' version '0.21.1' |
| 18 |
} |
| 19 |
|
| 20 |
|
| 21 |
@@ -47,10 +47,10 @@ |
| 22 |
ext.nexusFullName = project.findProperty('nexusFullName') |
| 23 |
ext.nexusEmail = project.findProperty('nexusEmail') |
| 24 |
|
| 25 |
|
| 26 |
+/* // User and Password are taken from ~/.gradle/gradle.properties |
| 27 |
if (!nexusUsername || !nexusPassword) { |
| 28 |
throw new IllegalStateException("Sonatype username or password not set!") |
| 29 |
|
| 30 |
+} */ |
| 31 |
|
| 32 |
repositories { |
| 33 |
// mavenLocal() |
| 34 |
@@ -106,7 +106,7 @@ |
| 35 |
testCompile "org.mockito:mockito-all:$mockitoVer" |
| 36 |
} |
| 37 |
|
| 38 |
|
| 39 |
+/* shadowJar { |
| 40 |
outputs.upToDateWhen { false } |
| 41 |
|
| 42 |
// artifactAttached = false |
| 43 |
@@ -122,9 +122,9 @@ |
| 44 |
exclude 'javax/inject/**' |
| 45 |
exclude 'org/apache/log4j/lf5/**' |
| 46 |
exclude 'org/apache/log4j/xml/log4j.dtd' |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
+ exclude 'org/apache/commons/codec/language/**' */ |
| 51 |
+ //exclude '**/version.properties' |
| 52 |
+/* |
| 53 |
relocate 'org.', 'capsule.org.' |
| 54 |
relocate 'io.', 'capsule.io.' |
| 55 |
relocate 'com.', 'capsule.com.' |
| 56 |
@@ -135,7 +135,7 @@ |
| 57 |
'Caplets' : 'MavenCapsule' |
| 58 |
) |
| 59 |
} |
| 60 |
|
| 61 |
+} */ |
| 62 |
|
| 63 |
|
| 64 |
javadoc { |
| 65 |
@@ -191,7 +191,7 @@ |
| 66 |
archives javadocJar |
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
+/* signing { |
| 71 |
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") } |
| 72 |
sign configurations.archives |
| 73 |
} |
| 74 |
@@ -248,6 +248,6 @@ |
| 75 |
pom.whenConfigured { |
| 76 |
it.dependencies.clear() |
| 77 |
} |
| 78 |
|
| 79 |
+} */ |
| 80 |
|
| 81 |
defaultTasks 'build' |