forked from fastily/jwiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (90 loc) · 2.91 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
113
114
plugins {
id 'eclipse'
id 'idea'
id 'java-library'
id 'maven-publish'
id 'signing'
}
description="${project.name} build script"
group="org.fastily"
version="1.8.1"
repositories {
mavenCentral()
}
dependencies {
api "com.google.code.gson:gson:2.8.6"
api "com.squareup.okhttp3:okhttp:4.9.0"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
//testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.5.2'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.9.0'
}
test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compileClasspath
options {
setMemberLevel JavadocMemberLevel.PUBLIC
setAuthor true
links "https://docs.oracle.com/en/java/javase/11/docs/api/"
//links "https://square.github.io/okio/1.x/okio/"
//links "https://square.github.io/okhttp/3.x/okhttp/"
links "https://fastily.github.io/jwiki/docs/gson/"
// links "http://square.github.io/okhttp/3.x/mockwebserver/"
// setOutputLevel JavadocOutputLevel.VERBOSE
}
}
wrapper {
gradleVersion = '6.8'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'jwiki'
description = 'A library for effortlessly interacting with Wikipedia/MediaWiki'
inceptionYear = '2014'
url = 'https://github.com/fastily/jwiki'
licenses {
license {
name = 'GNU General Public License, Version 3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
developers {
developer {
id = 'fastily'
name = 'Fastily'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/fastily/jwiki.git'
developerConnection = 'scm:git:ssh://github.com/fastily/jwiki.git'
url = 'https://github.com/fastily/jwiki'
}
}
}
}
repositories {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username hasProperty("ossrhUsername") ? "$ossrhUsername" : System.getenv('ossrhUsername')
password hasProperty("ossrhPassword") ? "$ossrhPassword" : System.getenv('ossrhPassword')
}
}
}
}
signing {
sign publishing.publications.mavenJava
}