| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- apply from: 'dependencies.gradle'
- buildscript {
- repositories {
- mavenCentral()
- jcenter()
- google()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.2'
- }
- }
- allprojects {
- group = 'me.dm7.barcodescanner'
- version = '1.9.2'
- repositories {
- mavenCentral()
- maven {
- url 'https://oss.sonatype.org/content/groups/public'
- }
- google()
- }
- ext {
- isLibrary = false
- }
- }
- subprojects {
- afterEvaluate { Project project ->
- ext.pluginContainer = project.getPlugins()
- if (ext.pluginContainer.hasPlugin("com.android.application") || ext.pluginContainer.hasPlugin("com.android.library")) {
- android {
- compileSdkVersion versions.compile_sdk
- buildToolsVersion versions.build_tools
- android {
- lintOptions {
- abortOnError false
- }
- }
- defaultConfig {
- minSdkVersion versions.min_sdk
- targetSdkVersion versions.target_sdk
- versionCode 192
- versionName "1.9.2"
- }
- }
- }
- if (project.isLibrary && rootProject.hasProperty('sonatypeUsername') && rootProject.hasProperty('sonatypePassword')) {
- configure(project) {
- apply plugin: 'maven'
- apply plugin: 'signing'
- signing {
- required { gradle.taskGraph.hasTask("uploadArchives") }
- sign configurations.archives
- }
- uploadArchives {
- repositories.mavenDeployer {
- beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
- repository(url: sonatypeRepo) {
- authentication(userName: sonatypeUsername, password: sonatypePassword)
- releases(updatePolicy: 'always')
- }
- snapshotRepository(url: sonatypeSnapshotRepo) {
- authentication(userName: sonatypeUsername, password: sonatypePassword)
- snapshots(updatePolicy: 'always')
- }
- pom.project {
- name project.pomName
- version project.version
- groupId project.group
- packaging project.pomPackaging
- artifactId project.pomArtifactId
- description project.pomDescription
- url 'https://github.com/dm77/barcodescanner'
- scm {
- url 'scm:[email protected]:dm77/barcodescanner.git'
- connection 'scm:[email protected]:dm77/barcodescanner.git'
- developerConnection 'scm:[email protected]:dm77/barcodescanner.git'
- }
- licenses {
- license {
- name 'The Apache Software License, Version 2.0'
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- distribution 'repo'
- }
- }
- developers {
- developer {
- id 'dm77'
- name 'Dushyanth Maguluru'
- email '[email protected]'
- }
- }
- }
- }
- }
- }
- }
- }
- }
- /*task wrapper(type: Wrapper) {
- gradleVersion = '3.4.1'
- }*/
|