tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

build.gradle (1385B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
      6 
      7 apply plugin: 'java-library'
      8 apply plugin: 'kotlin'
      9 
     10 dependencies {
     11  compileOnly libs.android.lint.api
     12  compileOnly libs.android.lint.checks
     13  compileOnly libs.kotlin.reflect
     14 
     15  testImplementation libs.android.lint
     16  testImplementation libs.android.lint.tests
     17  testImplementation platform(libs.junit.bom)
     18  testImplementation libs.junit4
     19  testRuntimeOnly libs.junit.platform.launcher
     20  testRuntimeOnly libs.junit.vintage
     21  testImplementation libs.kotlin.reflect
     22  testImplementation libs.mockito
     23 }
     24 
     25 jar {
     26  manifest {
     27    attributes('Lint-Registry-v2': 'mozilla.components.tooling.lint.LintIssueRegistry')
     28  }
     29 }
     30 
     31 tasks.register("lint") {
     32  doLast {
     33    // Do nothing. We execute the same set of tasks for all our modules in parallel on taskcluster.
     34    // This project doesn't have a lint task. To avoid special casing our automation I just added
     35    // an empty lint task here.
     36  }
     37 }
     38 
     39 tasks.register("assembleAndroidTest") {
     40  doLast {
     41    // Do nothing. Like the `lint` task above this is just a dummy task so that this module
     42    // behaves like our others and we do not need to special case it in automation.
     43  }
     44 }