Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error after importing Parse UI widget #134

Open
nirupbbnk opened this issue Mar 1, 2016 · 0 comments
Open

error after importing Parse UI widget #134

nirupbbnk opened this issue Mar 1, 2016 · 0 comments

Comments

@nirupbbnk
Copy link

**_

Error:(29, 0) Cannot get property 'parse' on extra properties extension as it does not exist
And the error points to this line in dependency
dependencies {
compile rootProject.ext.parse
_**

import com.android.builder.core.BuilderConstants

apply plugin: 'com.android.library'

version = "0.0.1"
group = 'com.parse'

dependencies {
compile rootProject.ext.parse

androidTestCompile 'com.crittercism.dexmaker:dexmaker:1.4'
androidTestCompile 'com.crittercism.dexmaker:dexmaker-mockito:1.4'
androidTestCompile 'com.crittercism.dexmaker:dexmaker-dx:1.4'
androidTestCompile 'org.mockito:mockito-core:1.10.19'
androidTestCompile ('org.skyscreamer:jsonassert:1.2.3') {
    exclude module: 'json'
}

}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionName project.version
    versionCode 1
}

}

android.libraryVariants.all { variant ->
def name = variant.buildType.name

def javadocTask = task("javadoc${variant.name.capitalize()}", type: Javadoc) {
    description "Generates Javadoc for $variant.name."
    source = variant.javaCompile.source
    ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
    classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)

    options.linksOffline("http://d.android.com/reference", "${android.sdkDirectory}/docs/reference")
    options.links("http://boltsframework.github.io/docs/android/")

    exclude '**/BuildConfig.java'
    exclude '**/R.java'
    exclude '**/internal/**'
    exclude '**/oauth/**'
}

def javadocJarTask = task("javadocJar${variant.name.capitalize()}", type: Jar, dependsOn: "javadoc${variant.name.capitalize()}") {
    classifier = 'javadoc'
    from javadocTask.destinationDir
}

if (name.equals(BuilderConstants.RELEASE)) {
    artifacts.add('archives', javadocJarTask);
}

}

//region Maven

apply plugin: 'maven'
apply plugin: 'signing'

def isSnapshot = version.endsWith('-SNAPSHOT')
def ossrhUsername = hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : System.getenv('CI_NEXUS_USERNAME')
def ossrhPassword = hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : System.getenv('CI_NEXUS_PASSWORD')

uploadArchives {
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

    repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
        authentication(userName: ossrhUsername, password: ossrhPassword)
    }

    snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
        authentication(userName: ossrhUsername, password: ossrhPassword)
    }

    pom.project {
        name 'ParseUI-Widget-Android'
        artifactId = 'parseui-widget-android'
        packaging 'aar'
        description 'A library contains ui widgets for building apps with the Parse Android SDK.'
        url 'https://github.com/ParsePlatform/ParseUI-Android'

        scm {
            connection 'scm:[email protected]:ParsePlatform/ParseUI-Android.git'
            developerConnection 'scm:[email protected]:ParsePlatform/ParseUI-Android.git'
            url 'https://github.com/ParsePlatform/ParseUI-Android'
        }

        licenses {
            license {
                name 'Platform License'
                url 'https://github.com/ParsePlatform/ParseUI-Android/blob/master/LICENSE'
                distribution 'repo'
            }
        }

        developers {
            developer {
                id 'parse'
                name 'Parse'
            }
        }
    }
}

}

signing {
required { !isSnapshot && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.sourceFiles
}

artifacts {
archives androidSourcesJar
}

//endregion
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant