With Artifactory's Gradle Build Script Generator, you can easily create a Gradle init script that handles resolution.
In the Artifact Repository Browser of the Artifacts module, select Set Me Up. In the Set Me Up dialog, set Gradle in the Tool field and click "Generate Gradle Settings". You can now specify the settings you want to configure for Gradle.
Setting | Description |
---|---|
Plugin/Libs Resolver | The repository that should be used to resolve plugins/libraries |
Use Maven/Use Ivy | When checked, specifies that resolving should be done using the Maven/Ivy pattern |
Libs Publisher | The repository that should be used to publish libraries |
Use Maven/Use Ivy | When checked, specifies that library should be published using a Maven/Ivy descriptor |
Repository Layout | Specifies the layout of the corresponding repository |
Once you have configured the settings for Gradle you can click "Generate Settings" to generate and save the build.gradle and gradle.properties
file.