-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
112 lines (96 loc) · 2.46 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
plugins {
id 'java'
id 'idea'
id 'maven-publish'
}
apply plugin: 'java-library'
apply from: 'jdks.gradle'
ext {
ver = '1.0.0'
pkg = 'com.discord4j'
}
group pkg
version ver
repositories {
jcenter()
}
sourceSets {
java9 {
java {
srcDirs = ['src/main/java9']
}
}
}
dependencies {
java9Implementation files(sourceSets.main.output.classesDirs) { builtBy compileJava }
compile "io.projectreactor:reactor-core:3.2.5.RELEASE"
compileOnly 'com.austinv11.servicer:Servicer:1.0.0'
annotationProcessor 'com.austinv11.servicer:Servicer:1.0.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'com.discord4j:stores-jdk:1.0.0'
}
compileJava {
sourceCompatibility = 8
targetCompatibility = 8
}
compileJava9Java {
sourceCompatibility = 9
targetCompatibility = 9
}
jar {
into('META-INF/versions/9') {
from sourceSets.java9.output
}
manifest.attributes(
'Multi-Release': 'true'
)
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
javadoc {
failOnError false
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'Catalyst'
description = 'Reactive interface for caching supporting arbitrary requirements'
url = 'https://github.com/Discord4J/Catalyst'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'austinv11'
name = 'Austin Varela'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/Discord4J/Catalyst.git'
url = 'https://github.com/Discord4J/Catalyst'
}
}
from components.java
artifact sourcesJar
artifact javadocJar
groupId pkg
artifactId 'Catalyst'
version ver
}
}
}