https://github.com/otakuchiyan/DNSman
Raw File
Tip revision: da13f64880cbdb5bbd2005f1e0c73c180fa61549 authored by Hiroki Chen on 28 January 2017, 14:57:05 UTC
Merge pull request #24 from DevFactory/release/remove-useless-imports-fix-1
Tip revision: da13f64
build.gradle.libsuperuser
apply plugin: 'com.android.library'
//apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

android {
    compileSdkVersion 23
    buildToolsVersion "24.0.0 rc3"

    defaultConfig {
        minSdkVersion 4
        targetSdkVersion 23
    }
    
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_6
    }
}

version = "1.0.0." + (new Date()).format('yyyyMMddHHmm')
group = "eu.chainfire"

bintray {
    // in global gradle.properties: "systemProp.bintrayUser=chainfire", etc
    user = System.properties['bintrayUser']
    key = System.properties['bintrayApiKey']

    configurations = ['archives']
    dryRun = false
    publish = true
    pkg {
        repo = 'maven'
        name = 'libsuperuser'
        desc = 'libsuperuser'
        websiteUrl = 'https://github.com/Chainfire/libsuperuser'
        issueTrackerUrl = 'https://github.com/Chainfire/libsuperuser/issues'
        vcsUrl = 'https://github.com/Chainfire/libsuperuser.git'
        licenses = ['Apache-2.0']
        publicDownloadNumbers = true
    }

}
/*
install {
    repositories.mavenInstaller {
        pom {
            project {
                packaging 'aar'
                name 'libsuperuser'
                url 'https://github.com/Chainfire/libsuperuser'
                licenses {
                    license {
                        name 'The Apache Software License, Version 2.0'
                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
                    }
                }
                developers {
                    developer {
                        id 'Chainfire'
                        name 'Jorrit Jongma'
                    }
                }
                scm {
                    connection 'https://github.com/Chainfire/libsuperuser.git'
                    developerConnection 'https://github.com/Chainfire/libsuperuser.git'
                    url 'https://github.com/Chainfire/libsuperuser.git'
                }
            }
        }
    }
}
*/

dependencies {
}

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

task javadoc(type: Javadoc) {
    source = android.sourceSets.main.java.srcDirs
    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
    classifier = 'javadoc'
    from javadoc.destinationDir
}

artifacts {
    archives javadocJar
    archives sourcesJar
}

task findConventions << {
    println project.getConvention()
}
back to top