@@ -5,45 +5,70 @@ buildscript {
55 maven {
66 url " https://plugins.gradle.org/m2/"
77 }
8+ maven {
9+ url ' https://jcenter.bintray.com'
10+ }
811 }
912 dependencies {
1013 classpath " gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.8"
14+ classpath ' com.bmuschko:gradle-nexus-plugin:2.3.1'
1115 }
1216}
1317
14-
1518plugins {
1619 id ' java'
1720}
21+
1822apply plugin : ' com.github.sherter.google-java-format'
23+ apply plugin : ' com.bmuschko.nexus'
24+
25+ repositories {
26+ mavenCentral()
27+ }
28+
29+ project. configurations. configure {
30+ " sonatype" () {
31+ extendsFrom archives
32+ }
33+ }
1934
2035sourceCompatibility = JavaVersion . VERSION_1_8
2136targetCompatibility = JavaVersion . VERSION_1_8
2237
2338dependencies {
24- // TODO make this provided instead of compile?
2539 implementation ' com.amazonaws:aws-lambda-java-core:1.1.0'
26- implementation ' com.amazonaws:aws-lambda-java-events:2.2.2' // 2.2.2 is earliest version that has all needed event sources
40+ // 2.2.2 is earliest version that has all needed event sources
41+ implementation ' com.amazonaws:aws-lambda-java-events:2.2.2'
2742 implementation ' com.amazonaws:aws-java-sdk-s3:1.11.163'
2843 implementation ' com.amazonaws:aws-java-sdk-kinesis:1.11.163'
2944 implementation ' com.amazonaws:aws-java-sdk-dynamodb:1.11.163'
3045 implementation ' com.googlecode.json-simple:json-simple:1.1'
31- implementation(' io.opentracing:opentracing-api:0.31.0' ) { transitive = false }
32- implementation(' io.opentracing:opentracing-util:0.31.0' ) { transitive = false }
33- implementation(' io.opentracing:opentracing-noop:0.31.0' ) { transitive = false }
46+ implementation(' io.opentracing:opentracing-api:0.31.0' )
47+ implementation(' io.opentracing:opentracing-util:0.31.0' )
48+ implementation(' io.opentracing:opentracing-noop:0.31.0' )
3449
3550 testImplementation ' junit:junit:4.12'
3651 testImplementation ' io.opentracing:opentracing-mock:0.31.0'
3752}
3853
3954jar {
4055 manifest {
41- attributes ' Implementation-Title' : ' AWS Lambda OpenTracing Java SDK' , ' Implementation-Version' : ' 1.0.1 '
56+ attributes ' Implementation-Title' : ' AWS Lambda OpenTracing Java SDK' , ' Implementation-Version' : project . version
4257 }
4358}
4459
45- allprojects {
46- repositories {
47- mavenCentral()
60+ task uploadSonatype (type : Upload ) {
61+ configuration = configurations. sonatype
62+ uploadDescriptor = true
63+ }
64+
65+ nexus {
66+ sign = true
67+ configuration = " sonatype"
68+ }
69+
70+ uploadSonatype. doFirst {
71+ configuration. artifacts. each {
72+ println (project. name + " uploading: " + it)
4873 }
4974}
0 commit comments