Tabnine Logo
BaseExtension.getSourceSets
Code IndexAdd Tabnine to your IDE (free)

How to use
getSourceSets
method
in
com.android.build.gradle.BaseExtension

Best Java code snippets using com.android.build.gradle.BaseExtension.getSourceSets (Showing top 2 results out of 315)

origin: typelead/gradle-eta

private void configureEtaSourceSetConvention() {
  androidExtension.getSourceSets().all(sourceSet -> {
      project.getLogger().debug("Creating EtaSourceSet for source set " + sourceSet);
      final DefaultEtaSourceSet etaSourceSet =
        project.getObjects().newInstance
        (DefaultEtaSourceSet.class, null, ETA_SOURCE_SET_NAME,
         ((DefaultAndroidSourceSet) sourceSet).getDisplayName(),
         sourceDirectorySetFactory);
      ExtensionHelper.createConvention
        (sourceSet, ETA_SOURCE_SET_DSL_NAME, etaSourceSet);
      ExtensionHelper.createConvention(sourceSet, "eta", etaSourceSet);
      etaSourceSet.getEta().srcDir("src/" + sourceSet.getName() + "/eta");
    });
}
origin: CoffeePartner/capt

public void createConfigurationForVariant() {
  ConfigurationContainer configurations = project.getConfigurations();
  extension.getSourceSets().all(androidSourceSet -> {
    if (!androidSourceSet.getName().startsWith(TEST)) { // don't support unit test
      Configuration configuration = configurations.maybeCreate(sourceSetToConfigurationName(androidSourceSet.getName()));
com.android.build.gradleBaseExtensiongetSourceSets

Popular methods of BaseExtension

  • getBootClasspath
  • registerTransform
  • getAdbExecutable
  • getCompileOptions
  • getDefaultConfig
  • getLintOptions

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JOptionPane (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Runner (org.openjdk.jmh.runner)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now