@@ -5,32 +5,46 @@ buildscript {
5
5
maven {
6
6
url " https://plugins.gradle.org/m2/"
7
7
}
8
+ maven {
9
+ url ' https://jcenter.bintray.com'
10
+ }
8
11
}
9
12
dependencies {
10
13
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'
11
15
}
12
16
}
13
17
14
-
15
18
plugins {
16
19
id ' java'
17
20
}
18
21
apply 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
+ }
19
33
20
34
sourceCompatibility = JavaVersion . VERSION_1_8
21
35
targetCompatibility = JavaVersion . VERSION_1_8
22
36
23
37
dependencies {
24
- // TODO make this provided instead of compile?
25
38
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
27
40
implementation ' com.amazonaws:aws-java-sdk-s3:1.11.163'
41
+ implementation ' com.amazonaws:aws-lambda-java-events:2.2.2'
28
42
implementation ' com.amazonaws:aws-java-sdk-kinesis:1.11.163'
29
43
implementation ' com.amazonaws:aws-java-sdk-dynamodb:1.11.163'
30
44
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' )
34
48
35
49
testImplementation ' junit:junit:4.12'
36
50
testImplementation ' io.opentracing:opentracing-mock:0.31.0'
42
56
}
43
57
}
44
58
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)
48
72
}
49
73
}
0 commit comments