| 1 |
Author: Vincent Prat <[email protected]> |
| 2 |
Description: Fix Gradle configuration files to make them compatible with Debian |
| 3 |
Forwarded: not-needed |
| 4 |
--- a/build.gradle |
| 5 |
+++ b/build.gradle |
| 6 |
@@ -3,24 +3,24 @@ |
| 7 |
id 'java-library' |
| 8 |
id 'wrapper' |
| 9 |
id 'maven-publish' |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
+// id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' |
| 14 |
+// id 'com.github.sherter.google-java-format' version '0.3.2' |
| 15 |
+// id 'net.ltgt.errorprone' version '2.0.2' |
| 16 |
id 'idea' |
| 17 |
id 'signing' |
| 18 |
|
| 19 |
// code coverage support |
| 20 |
|
| 21 |
+// id 'net.saliman.cobertura' version '2.5.4' |
| 22 |
|
| 23 |
// Add license plugin. By default, this plugin only applies to the root |
| 24 |
// project. Since we need license enforcement for benchmarks and the |
| 25 |
// Unicode table generator, "apply false" specifies that the plugin should |
| 26 |
// be downloaded and made available to Gradle, but not applied yet. See the |
| 27 |
// allprojects section below for where this plugin is actually applied. |
| 28 |
|
| 29 |
+// id 'com.github.hierynomus.license' version '0.15.0' apply false |
| 30 |
} |
| 31 |
|
| 32 |
|
| 33 |
+//cobertura.coverageFormats = ['html', 'xml'] |
| 34 |
|
| 35 |
// The name of the release we're working on. See RELEASING.md for details. |
| 36 |
group = "com.google.re2j" |
| 37 |
@@ -34,7 +34,9 @@ |
| 38 |
targetCompatibility = 1.6 |
| 39 |
|
| 40 |
repositories { |
| 41 |
|
| 42 |
+ maven { |
| 43 |
+ url "file:///usr/share/mave-repo" |
| 44 |
+ } |
| 45 |
} |
| 46 |
|
| 47 |
sourceSets { |
| 48 |
@@ -81,8 +83,8 @@ |
| 49 |
} |
| 50 |
|
| 51 |
dependencies { |
| 52 |
|
| 53 |
|
| 54 |
+ //errorproneJavac 'com.google.errorprone:javac:9+181-r4173-1' |
| 55 |
+ //errorprone 'com.google.errorprone:error_prone_core:2.10.0' |
| 56 |
|
| 57 |
testCompile 'junit:junit:4.12' |
| 58 |
testCompile 'com.google.gwt:gwt-dev:2.9.0' |
| 59 |
@@ -149,19 +151,19 @@ |
| 60 |
} |
| 61 |
|
| 62 |
signing { |
| 63 |
|
| 64 |
+ //useGpgCmd() |
| 65 |
|
| 66 |
|
| 67 |
+ //sign publishing.publications.mavenJava |
| 68 |
} |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
+//nexusPublishing { |
| 79 |
+// repositories { |
| 80 |
+// sonatype { |
| 81 |
+// username = findProperty('sonatype.username') |
| 82 |
+// password = findProperty('sonatype.password') |
| 83 |
+// } |
| 84 |
+// } |
| 85 |
+//} |
| 86 |
|
| 87 |
// If Java formatter checks fail, tell the user how to fix them. |
| 88 |
task printFormatHelperMessage { |
| 89 |
@@ -170,47 +172,50 @@ |
| 90 |
'Use ./gradlew googleJavaFormat to reformat the broken files') |
| 91 |
} |
| 92 |
} |
| 93 |
|
| 94 |
|
| 95 |
+//verifyGoogleJavaFormat.finalizedBy printFormatHelperMessage |
| 96 |
+//printFormatHelperMessage.onlyIf { verifyGoogleJavaFormat.state.failure != null } |
| 97 |
|
| 98 |
|
| 99 |
+//import com.hierynomus.gradle.license.tasks.LicenseCheck |
| 100 |
|
| 101 |
// By default, this plugin only applies to the root project. We apply it here |
| 102 |
// manually to all projects so that even the subprojects receive license |
| 103 |
// enforcement. |
| 104 |
+//allprojects { |
| 105 |
+// apply plugin: "license" |
| 106 |
+// |
| 107 |
+// license { |
| 108 |
+// header rootProject.file('LICENSE.header') |
| 109 |
+// ext.year = Calendar.getInstance().get(Calendar.YEAR) |
| 110 |
+// strictCheck true |
| 111 |
+// skipExistingHeaders true |
| 112 |
+// |
| 113 |
+// mapping { |
| 114 |
+// // Without this, the plugin adds javadoc-style comments to the top |
| 115 |
+// // of each Java source file. |
| 116 |
+// java = 'SLASHSTAR_STYLE' |
| 117 |
+// } |
| 118 |
+// |
| 119 |
+// include '**/*.gradle' |
| 120 |
+// include '**/*.java' |
| 121 |
+// include '**/*.xml' |
| 122 |
+// include '**/*.pl' |
| 123 |
+// } |
| 124 |
+// |
| 125 |
+// // Each license check task gets a new "help message" task to tell the |
| 126 |
+// // user how to fix license violations. |
| 127 |
+// tasks.withType(LicenseCheck) { checkTask -> |
| 128 |
+// def helpMessageTask = task "${checkTask.name}HelpMessage" { |
| 129 |
+// doLast { |
| 130 |
+// throw new GradleException( |
| 131 |
+// 'Some files lack an appropriate license header.\n' + |
| 132 |
+// 'Run ./gradlew licenseFormat to add one.') |
| 133 |
+// } |
| 134 |
+// } |
| 135 |
+// |
| 136 |
+// checkTask.finalizedBy helpMessageTask |
| 137 |
+// helpMessageTask.onlyIf { checkTask.state.failure != null } |
| 138 |
+// } |
| 139 |
allprojects { |
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
+ group = 'com.google.re2j' |
| 175 |
+ version = "1.7" |
| 176 |
} |
| 177 |
--- a/unicode/build.gradle |
| 178 |
+++ b/unicode/build.gradle |
| 179 |
@@ -10,7 +10,7 @@ |
| 180 |
} |
| 181 |
|
| 182 |
dependencies { |
| 183 |
|
| 184 |
+// compile 'com.google.googlejavaformat:google-java-format:1.0' |
| 185 |
compile 'com.squareup:javapoet:1.12.1' |
| 186 |
compile 'com.ibm.icu:icu4j:4.8.2' |
| 187 |
compile 'com.google.guava:guava:29.0-jre' |