Settings

Theme

Distributing Android Libraries via JCenter for Gradle Importing

brianattwell.com

1 points by battwell 11 years ago · 1 comment

Reader

vorg 11 years ago

With Gradle's build language, I can't easily remember when to put an equals sign in a line and when not to, e.g. from your example code, this has equals:

  bintrayRepo = 'maven'
whereas this line doesn't:

  classpath 'com.android.tools.build:gradle:1.2.3'
I notice you've also got an example of a colon

  apply from: 'https://raw.githubusercontent.com/attwellBrian/JCenter/master/installv1.gradle'
which further complicates things. Why not just "apply" ? Not sure if I want to remember all the special syntax cases in the build language.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection