@@ -5,32 +5,46 @@ 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}
1821apply plugin : ' com.github.sherter.google-java-format'
22+ apply plugin : ' com.bmuschko.nexus'
23+
24+ repositories {
25+ mavenCentral()
26+ }
27+
28+ project. configurations. configure {
29+ " sonatype" () {
30+ extendsFrom archives
31+ }
32+ }
1933
2034sourceCompatibility = JavaVersion . VERSION_1_8
2135targetCompatibility = JavaVersion . VERSION_1_8
2236
2337dependencies {
24- // TODO make this provided instead of compile?
2538 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
39+ // 2.2.2 is earliest version that has all needed event sources
2740 implementation ' com.amazonaws:aws-java-sdk-s3:1.11.163'
41+ implementation ' com.amazonaws:aws-lambda-java-events:2.2.2'
2842 implementation ' com.amazonaws:aws-java-sdk-kinesis:1.11.163'
2943 implementation ' com.amazonaws:aws-java-sdk-dynamodb:1.11.163'
3044 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 }
45+ implementation(' io.opentracing:opentracing-api:0.31.0' )
46+ implementation(' io.opentracing:opentracing-util:0.31.0' )
47+ implementation(' io.opentracing:opentracing-noop:0.31.0' )
3448
3549 testImplementation ' junit:junit:4.12'
3650 testImplementation ' io.opentracing:opentracing-mock:0.31.0'
4256 }
4357}
4458
45- allprojects {
46- repositories {
47- mavenCentral()
59+ task uploadSonatype (type : Upload ) {
60+ configuration = configurations. sonatype
61+ uploadDescriptor = true
62+ }
63+
64+ nexus {
65+ sign = true
66+ configuration = " sonatype"
67+ }
68+
69+ uploadSonatype. doFirst {
70+ configuration. artifacts. each {
71+ println (project. name + " uploading: " + it)
4872 }
4973}
0 commit comments