Skip to content

Instantly share code, notes, and snippets.

@Salakar
Created January 12, 2019 03:53
Show Gist options
  • Save Salakar/7a9e1f1552c0c7dcc9ae3290089fbacd to your computer and use it in GitHub Desktop.
Save Salakar/7a9e1f1552c0c7dcc9ae3290089fbacd to your computer and use it in GitHub Desktop.
Example applying a plugin to settings.gradle.
// REMOTE MAVEN
buildscript {
repositories { mavenCentral() }
dependencies { classpath 'io.invertase.gradle:react-native:+' }
}
apply plugin: "io.invertase.gradle.settings"
// OR ---------------
// LOCAL MAVEN
buildscript {
repositories { maven { url uri('/Volumes/Projects/Projects/react-native-gradle-plugin/repo') }}
dependencies { classpath 'io.invertase.gradle:react-native:+' }
}
apply plugin: "io.invertase.gradle.settings"
// --------------------
include ':app'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment