This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (77 loc) · 2.54 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
buildscript {
repositories.gradlePluginPortal()
dependencies.classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.1"
}
apply plugin: 'java-library'
group 'de.kaleidox'
version '10' // actually build number
apply from: 'gradle/vars.gradle'
def exportedProjects = [
':core',
':catnip',
':discord4j',
':javacord',
':jda'
]
tasks.findByName('wrapper')?.configure {
gradleVersion = '5.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
allprojects {
tasks.withType(Javadoc) {
options {
encoding = 'UTF-8'
links = [
"https://docs.oracle.com/javase/8/docs/api/",
"https://docs.oracle.com/javaee/7/api/",
"https://mewna.github.io/catnip/docs/",
//"https://www.javadoc.io/doc/com.discord4j/discord4j-core/3.0.9", // broken
"https://docs.javacord.org/api/v/3.0.4/"//,
//"https://ci.dv8tion.net/job/JDA/javadoc/" // broken
]
}
}
}
subprojects {
apply plugin: 'java-library'
group 'de.kaleidox'
sourceCompatibility = 1.8
targetCompatibility = 1.8
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = "sources"
}
task javadocJar(type: Jar) {
//javadoc
from javadoc.destinationDir
archiveClassifier = "javadoc"
}
compileJava.options.encoding = 'UTF-8'
repositories {
mavenLocal()
maven {
url "https://maven.jetbrains.space/comroid/release"
credentials.username "Anonymous.User"
credentials.password "anonymous"
}
jcenter()
maven { url 'https://www.jitpack.io' }
}
dependencies {
implementation 'org.comroid:restless:0.15.2'
implementation 'org.comroid:varbind:0.20.0'
compileOnly 'org.jetbrains:annotations:19.0.0'
implementation 'com.google.flogger:flogger:0.5.1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.easymock:easymock:4.0.2'
testCompileOnly 'org.codehaus.groovy:groovy:3.0.0-beta-3'
}
}
/*
task allJavadoc(type: Javadoc) {
source exportedProjects.collect { project(it).sourceSets.main.allJava }
classpath = files(exportedProjects.collect { project(it).sourceSets.main.compileClasspath })
options.encoding = 'UTF-8'
options.destinationDirectory(file("./docs/"))
}*/
apply from: 'gradle/publishing.gradle'