-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (62 loc) · 1.85 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
plugins {
id 'java'
id "maven-publish"
}
group = 'prelude.protocol'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
sourceCompatibility = 1.8
targetCompatibility = 1.8
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
}
task generateJavadoc(type: Javadoc) {
sourceSets.main.java.srcDirs.each { dir ->
source(dir)
}
classpath += configurations.compileClasspath
options.addStringOption('Xdoclint:none', '-quiet')
destinationDir = file("$buildDir/docs/javadoc")
}
task javadocJar(type: Jar, dependsOn: generateJavadoc) {
dependsOn generateJavadoc
archiveFileName = "${rootProject.name}-${project.name.capitalize()}-javadoc.jar"
from generateJavadoc.destinationDir
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
//publishing {
// apply plugin: 'signing'
//
// repositories {
// maven {
// name = "GitHubPackages"
// url = uri("https://maven.pkg.github.com/The-Resent-Team/Prelude-Protocol")
// credentials {
// username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
// password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
// }
// }
// }
// publications {
// gpr(MavenPublication) {
// from(components.java)
// }
// }
//
// signing {
// sign configurations.archives
// }
//}
test {
useJUnitPlatform()
}