|
|
@ -56,19 +56,33 @@ dependencies { |
|
|
|
|
|
|
|
|
|
|
|
//region bintray |
|
|
|
//region bintray |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// install is a task defined by the Gradle Maven plugin, which is used to |
|
|
|
|
|
|
|
// publish a maven repo to a local repository. (we actually use the android version of the plugin, |
|
|
|
|
|
|
|
// com.github.dcendents.android-maven, to support AARs) |
|
|
|
|
|
|
|
// https://docs.gradle.org/current/userguide/maven_plugin.html#sec:maven_tasks |
|
|
|
install { |
|
|
|
install { |
|
|
|
repositories.mavenInstaller { |
|
|
|
// The repositories property is common to all tasks of type Upload and returns the repositories |
|
|
|
pom.project { |
|
|
|
// into which we will upload data. https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Upload.html#org.gradle.api.tasks.Upload:repositories |
|
|
|
|
|
|
|
// It returns a RepositoryHandler: https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.RepositoryHandler.html |
|
|
|
|
|
|
|
repositories { |
|
|
|
|
|
|
|
// The maven plugin adds a mavenInstaller property to the RepositoryHandler which can be used to |
|
|
|
|
|
|
|
// add and configure a local maven repository cache. |
|
|
|
|
|
|
|
// https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.RepositoryHandler.html#N11785 |
|
|
|
|
|
|
|
mavenInstaller { |
|
|
|
|
|
|
|
// The object here extends PomFilterContainer so we can configure the pom file here. |
|
|
|
|
|
|
|
// https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/maven/PomFilterContainer.html#pom-groovy.lang.Closure- |
|
|
|
|
|
|
|
pom { |
|
|
|
|
|
|
|
// Now we are inside a MavenPom object that can be configured. We get the project and configure. |
|
|
|
|
|
|
|
// https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/maven/MavenPom.html |
|
|
|
|
|
|
|
project { |
|
|
|
name 'CameraView' |
|
|
|
name 'CameraView' |
|
|
|
description 'A well documented, high-level Android interface that makes capturing pictures ' + |
|
|
|
description 'A well documented, high-level Android interface that makes capturing pictures ' + |
|
|
|
'and videos easy, addressing most of the common issues and needs.' |
|
|
|
'and videos easy, addressing most of the common issues and needs.' |
|
|
|
url 'https://github.com/natario1/CameraView' |
|
|
|
url 'https://github.com/natario1/CameraView' |
|
|
|
|
|
|
|
|
|
|
|
packaging 'aar' |
|
|
|
packaging 'aar' |
|
|
|
groupId project.group |
|
|
|
groupId project.group |
|
|
|
artifactId 'cameraview' |
|
|
|
artifactId 'cameraview' |
|
|
|
version project.version |
|
|
|
version project.version |
|
|
|
|
|
|
|
|
|
|
|
licenses { |
|
|
|
licenses { |
|
|
|
license { |
|
|
|
license { |
|
|
|
name 'The Apache Software License, Version 2.0' |
|
|
|
name 'The Apache Software License, Version 2.0' |
|
|
@ -84,7 +98,9 @@ install { |
|
|
|
developers { |
|
|
|
developers { |
|
|
|
developer { |
|
|
|
developer { |
|
|
|
id = 'natario' |
|
|
|
id = 'natario' |
|
|
|
name 'Natario' |
|
|
|
name 'Mattia Iavarone' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|