forked from awslabs/aws-java-nio-spi-for-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
129 lines (112 loc) · 4.25 KB
/
build.gradle
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
124
125
126
127
128
129
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.3.3/userguide/building_java_projects.html
*/
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id 'signing'
id 'maven-publish'
id 'jacoco'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
group = 'software.amazon.nio.s3'
archivesBaseName = 'nio-spi-for-s3'
version = '1.2.4-dev'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
java {
withSourcesJar()
withJavadocJar()
}
compileJava {
// see https://docs.gradle.org/6.6/userguide/building_java_projects.html#sec:java_cross_compilation
options.release = 8
}
dependencies {
implementation 'io.reactivex.rxjava3:rxjava:3.1.7'
implementation 'io.reactivex.rxjava3:rxjava:3.1.7'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
testImplementation 'org.mockito:mockito-core:5.5.0'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.mockito:mockito-junit-jupiter:5.5.0'
testImplementation 'com.github.stefanbirkner:system-lambda:1.2.1'
implementation platform('software.amazon.awssdk:bom:2.20.150')
implementation 'software.amazon.awssdk:s3'
implementation 'software.amazon.awssdk:s3-transfer-manager'
implementation 'software.amazon.awssdk.crt:aws-crt:0.27.1'
implementation 'org.slf4j:slf4j-api:2.0.9'
implementation 'ch.qos.logback:logback-classic:1.4.11'
implementation 'ch.qos.logback:logback-core:1.4.11'
// cannot use caffeine v3 because that requires java 11
implementation('com.github.ben-manes.caffeine:caffeine:2.9.3')
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = 'AWS Java NIO SPI for S3'
description = 'A Java NIO.2 service provider for S3, allowing Java NIO operations to be performed on paths using the `s3` scheme. This\n' +
'package implements the service provider interface (SPI) defined for Java NIO.2 in JDK 1.7 providing "plug-in" non-blocking\n' +
'access to S3 objects for Java applications using Java NIO.2 for file access.'
url = 'https://github.com/awslabs/aws-java-nio-spi-for-s3'
inceptionYear = '2022'
scm {
url = 'https://github.com/awslabs/aws-java-nio-spi-for-s3/tree/main'
connection = 'scm:git:ssh://git@github.com/awslabs/aws-java-nio-spi-for-s3.git'
developerConnection = 'scm:git:ssh://git@github.com/awslabs/aws-java-nio-spi-for-s3.git'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'markjschreiber'
name = 'Mark Schreiber'
email = 'mrschre@amazon.com'
}
}
}
}
}
repositories {
maven {
def releasesRepoUrl = 'https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://aws.oss.sonatype.org/content/repositories/snapshots'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials(PasswordCredentials)
}
}
}
signing {
sign publishing.publications.maven
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
xml.outputLocation = file("build/reports/coverage.xml")
}
}