File: build.gradle

package info (click to toggle)
golang-github-grpc-ecosystem-grpc-opentracing 0.0~git20180507.8e809c8-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 592 kB
  • sloc: python: 2,021; java: 1,077; makefile: 2
file content (123 lines) | stat: -rw-r--r-- 3,094 bytes parent folder | download | duplicates (2)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
description = "grpc-java: OpenTracing"

group = "io.opentracing.contrib"
version = '0.2.0'
version = '0.3.0'

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

sourceSets {
    main {
        java {
            srcDirs = ['src/main/java']
        }
    }
    test {
        java {
            srcDirs = ['src/test/java', 'src/testgen']
        }
    }
}

task javadocJar(type: Jar) {
    classifier = 'javadoc'
    from javadoc
}

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

artifacts {
    archives jar

    archives javadocJar
    archives sourcesJar
}

signing {
    sign configurations.archives
}

repositories {
    mavenCentral()
}

jar {
    baseName 'grpc-opentracing'
    version = '0.2.0'
    version = '0.3.0'
}

dependencies {
    compile 'io.grpc:grpc-core:1.6.1'
    compile 'io.opentracing:opentracing-api:0.30.0'
    testCompile 'io.opentracing:opentracing-mock:0.30.0'
    testCompile 'io.grpc:grpc-protobuf:1.6.1'
    testCompile 'io.grpc:grpc-netty:1.6.1'
    testCompile 'io.grpc:grpc-stub:1.6.1'
    testCompile 'junit:junit:4.12'
}

// Allow for automatic promotion and release to Maven Central
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
    }
}
apply plugin: 'io.codearte.nexus-staging'

nexusStaging {
    packageGroup = "io.opentracing"
}

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)
            }

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

            pom.project {
                name 'grpc-opentracing'
                packaging 'jar'
                // optionally artifactId can be defined here
                description 'Provides support for integrating OpenTracing in grpc clients and servers.'
                url 'http://www.github.com/grpc-ecosystem/grpc-opentracing'

                scm {
                    url 'scm:git@github.com:grpc-ecosystem:grpc-opentracing.git'
                    connection 'scm:git@github.com:grpc-ecosystem/grpc-opentracing.git'
                    developerConnection 'scm:git@github.com:grpc-ecosystem/grpc-opentracing.git'
                }

                licenses {
                    license {
                        name 'BSD-3'
                        url 'https://opensource.org/licenses/BSD-3-Clause'
                    }
                }

                developers {
                    developer {
                        name 'Kathy Camenzind'
                        email 'kcamenzind@lightstep.com'
                    }
                }

            }
        }
    }
}