Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build.gradle - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c5fa7c7f687def81fba531582e25cdd441623dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
allprojects {
    apply plugin: 'idea'
}

ext {
    bcTestDataHome = file('core/src/test/data').absolutePath
}

subprojects {
    apply plugin: 'eclipse'
    apply plugin: 'java'
    apply plugin: 'maven'
    apply plugin: 'signing'

    group = 'com.madgag.spongycastle'

    task javadocJar(type: Jar, dependsOn: javadoc) {
        classifier = 'javadoc'
        from 'build/docs/javadoc'
    }

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

    artifacts {
        archives jar

        archives javadocJar
        archives sourcesJar
    }

    if (project.hasProperty("signing.keyId")) {
        signing {
            sign configurations.archives
        }
    }

    if (project.hasProperty("sonatypeUsername")) {
        uploadArchives {
            repositories {
                mavenDeployer {
                    beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

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

                    pom.project {
                        name 'Spongy Castle'
                        packaging 'jar'
                        description 'Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle\n' +
                                'intended for the Android platform. Android unfortunately ships with a stripped-down version of\n' +
                                'Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full,\n' +
                                'up-to-date version of the Bouncy Castle cryptographic libs.'
                        url 'http://rtyley.github.io/spongycastle/'

                        scm {
                            url 'scm:git@github.com:rtyley/spongycastle.git'
                            connection 'scm:git@github.com:rtyley/spongycastle.git'
                            developerConnection 'scm:git@github.com:rtyley/spongycastle.git'
                        }

                        licenses {
                            license {
                                name 'Bouncy Castle Licence'
                                url 'http://www.bouncycastle.org/licence.html'
                                distribution 'repo'
                            }
                        }

                        developers {
                            developer {
                                id 'rtyley'
                                name 'Roberto Tyley'
                            }
                        }
                    }
                }
            }
        }
    }

    repositories {
        mavenCentral()
    }

    dependencies {
        testCompile group: 'junit', name: 'junit', version: '4.11'
    }

    sourceCompatibility = 1.5
    targetCompatibility = 1.5
    version = '1.51.0.0'

    test {
        systemProperty 'bc.test.data.home', bcTestDataHome
    }
}