-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (73 loc) · 2.19 KB
/
build.gradle
File metadata and controls
90 lines (73 loc) · 2.19 KB
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
/*
* Copyright (c) 2014-2017 Afero, Inc. All rights reserved.
*/
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.0'
}
}
plugins {
id 'java'
id 'maven-publish'
id 'com.android.library' version '8.13.0' apply false
}
group = "io.afero.sdk"
version = "1.6.0"
allprojects {
repositories {
google()
mavenCentral()
}
}
java {
withJavadocJar()
}
apply plugin: 'java'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// https://github.com/FasterXML/jackson
implementation 'com.fasterxml.jackson.core:jackson-databind:2.20.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.20.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.20'
// https://github.com/ReactiveX/RxJava
implementation 'io.reactivex:rxjava:1.3.8'
testImplementation 'junit:junit:4.13.2'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
// Copy resources into build/classes so unit tests can find them. Must be a better way?
task copyResourcesDirectoryToClasses(type: Copy){
from "${projectDir}/src/test/resources"
into "${buildDir}/classes/test/resources"
}
testClasses.dependsOn copyResourcesDirectoryToClasses
publishing {
repositories {
maven {
url = 'https://afero.jfrog.io/afero/afero-java-sdk'
credentials {
username = project.findProperty('aferoArtifactoryUserName') ?: ""
password = project.findProperty('aferoArtifactoryPassword') ?: ""
}
}
}
publications {
maven(MavenPublication) {
groupId rootProject.group
version = rootProject.version
artifactId project.name
from components.java
}
}
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
options.links("http://reactivex.io/RxJava/1.x/javadoc/")
options.links("http://fasterxml.github.io/jackson-annotations/javadoc/2.8/")
options.links("http://fasterxml.github.io/jackson-core/javadoc/2.8/")
options.links("http://fasterxml.github.io/jackson-databind/javadoc/2.8/")
}