Author: Vincent Prat Description: Fix Gradle configuration files to make them compatible with Debian Forwarded: not-needed --- a/build.gradle +++ b/build.gradle @@ -3,24 +3,24 @@ id 'java-library' id 'wrapper' id 'maven-publish' - id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' - id 'com.github.sherter.google-java-format' version '0.3.2' - id 'net.ltgt.errorprone' version '2.0.2' +// id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' +// id 'com.github.sherter.google-java-format' version '0.3.2' +// id 'net.ltgt.errorprone' version '2.0.2' id 'idea' id 'signing' // code coverage support - id 'net.saliman.cobertura' version '2.5.4' +// id 'net.saliman.cobertura' version '2.5.4' // Add license plugin. By default, this plugin only applies to the root // project. Since we need license enforcement for benchmarks and the // Unicode table generator, "apply false" specifies that the plugin should // be downloaded and made available to Gradle, but not applied yet. See the // allprojects section below for where this plugin is actually applied. - id 'com.github.hierynomus.license' version '0.15.0' apply false +// id 'com.github.hierynomus.license' version '0.15.0' apply false } -cobertura.coverageFormats = ['html', 'xml'] +//cobertura.coverageFormats = ['html', 'xml'] // The name of the release we're working on. See RELEASING.md for details. group = "com.google.re2j" @@ -34,7 +34,9 @@ targetCompatibility = 1.6 repositories { - mavenCentral() + maven { + url "file:///usr/share/mave-repo" + } } sourceSets { @@ -81,8 +83,8 @@ } dependencies { - errorproneJavac 'com.google.errorprone:javac:9+181-r4173-1' - errorprone 'com.google.errorprone:error_prone_core:2.10.0' + //errorproneJavac 'com.google.errorprone:javac:9+181-r4173-1' + //errorprone 'com.google.errorprone:error_prone_core:2.10.0' testCompile 'junit:junit:4.12' testCompile 'com.google.gwt:gwt-dev:2.9.0' @@ -149,19 +151,19 @@ } signing { - useGpgCmd() + //useGpgCmd() - sign publishing.publications.mavenJava + //sign publishing.publications.mavenJava } -nexusPublishing { - repositories { - sonatype { - username = findProperty('sonatype.username') - password = findProperty('sonatype.password') - } - } -} +//nexusPublishing { +// repositories { +// sonatype { +// username = findProperty('sonatype.username') +// password = findProperty('sonatype.password') +// } +// } +//} // If Java formatter checks fail, tell the user how to fix them. task printFormatHelperMessage { @@ -170,47 +172,50 @@ 'Use ./gradlew googleJavaFormat to reformat the broken files') } } -verifyGoogleJavaFormat.finalizedBy printFormatHelperMessage -printFormatHelperMessage.onlyIf { verifyGoogleJavaFormat.state.failure != null } +//verifyGoogleJavaFormat.finalizedBy printFormatHelperMessage +//printFormatHelperMessage.onlyIf { verifyGoogleJavaFormat.state.failure != null } -import com.hierynomus.gradle.license.tasks.LicenseCheck +//import com.hierynomus.gradle.license.tasks.LicenseCheck // By default, this plugin only applies to the root project. We apply it here // manually to all projects so that even the subprojects receive license // enforcement. +//allprojects { +// apply plugin: "license" +// +// license { +// header rootProject.file('LICENSE.header') +// ext.year = Calendar.getInstance().get(Calendar.YEAR) +// strictCheck true +// skipExistingHeaders true +// +// mapping { +// // Without this, the plugin adds javadoc-style comments to the top +// // of each Java source file. +// java = 'SLASHSTAR_STYLE' +// } +// +// include '**/*.gradle' +// include '**/*.java' +// include '**/*.xml' +// include '**/*.pl' +// } +// +// // Each license check task gets a new "help message" task to tell the +// // user how to fix license violations. +// tasks.withType(LicenseCheck) { checkTask -> +// def helpMessageTask = task "${checkTask.name}HelpMessage" { +// doLast { +// throw new GradleException( +// 'Some files lack an appropriate license header.\n' + +// 'Run ./gradlew licenseFormat to add one.') +// } +// } +// +// checkTask.finalizedBy helpMessageTask +// helpMessageTask.onlyIf { checkTask.state.failure != null } +// } allprojects { - apply plugin: "license" - - license { - header rootProject.file('LICENSE.header') - ext.year = Calendar.getInstance().get(Calendar.YEAR) - strictCheck true - skipExistingHeaders true - - mapping { - // Without this, the plugin adds javadoc-style comments to the top - // of each Java source file. - java = 'SLASHSTAR_STYLE' - } - - include '**/*.gradle' - include '**/*.java' - include '**/*.xml' - include '**/*.pl' - } - - // Each license check task gets a new "help message" task to tell the - // user how to fix license violations. - tasks.withType(LicenseCheck) { checkTask -> - def helpMessageTask = task "${checkTask.name}HelpMessage" { - doLast { - throw new GradleException( - 'Some files lack an appropriate license header.\n' + - 'Run ./gradlew licenseFormat to add one.') - } - } - - checkTask.finalizedBy helpMessageTask - helpMessageTask.onlyIf { checkTask.state.failure != null } - } + group = 'com.google.re2j' + version = "1.7" } --- a/unicode/build.gradle +++ b/unicode/build.gradle @@ -10,7 +10,7 @@ } dependencies { - compile 'com.google.googlejavaformat:google-java-format:1.0' +// compile 'com.google.googlejavaformat:google-java-format:1.0' compile 'com.squareup:javapoet:1.12.1' compile 'com.ibm.icu:icu4j:4.8.2' compile 'com.google.guava:guava:29.0-jre'