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
104 lines (86 loc) · 3.05 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
buildscript {
repositories.gradlePluginPortal()
dependencies.classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.1"
}
apply plugin: 'java-library'
group 'org.comroid'
version '0.1.0-SNAPSHOT'
tasks.findByName('wrapper')?.configure {
gradleVersion = '5.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
subprojects {
ext {
refDir = parent == null || parent.name == 'repo' ? projectDir.path : parent.projectDir.path
}
group 'org.comroid'
apply plugin: 'java-library'
apply from: "$refDir/gradle/vars.gradle"
sourceSets {
main.java.srcDirs = files("$refDir/src/$project.name/main/java")
main.resources.srcDirs = files("$refDir/src/$project.name/main/resources")
test.java.srcDirs = files("$refDir/src/$project.name/test/java")
test.resources.srcDirs = files("$refDir/src/$project.name/test/resources")
}
def exportedProjects = [
':core',
':catnip',
':discord4j',
':javacord',
':jda'
]
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'
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
]
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.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 {
compileOnly 'org.jetbrains:annotations:19.0.0'
if (isAutoDeploy) {
implementation 'com.github.comroid-git.guardian-framework:uniform:master-SNAPSHOT'
} else {
implementation project(':guardian:uniform')
}
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/"))
}*/