-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.gradle
122 lines (102 loc) · 2.32 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
115
116
117
118
119
120
121
122
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'net.arnx'
version = '0.9.11'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.12'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'src/stub/java'
}
}
}
compileJava {
options.encoding = 'UTF-8'
}
compileTestJava {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes 'Main-Class': 'net.arnx.wmf2svg.Main'
}
exclude("android/")
exclude("com/")
}
javadoc {
options {
links(JavaVersion.current().isJava11Compatible() ?
'https://docs.oracle.com/en/java/javase/11/docs/api' :
'https://docs.oracle.com/javase/8/docs/api/')
locale = 'en_US'
encoding = 'UTF-8'
docEncoding = 'UTF-8'
charSet = 'UTF-8'
author = true
}
options.addBooleanOption('html5',
JavaVersion.current().isJava9Compatible())
}
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'wmf2svg'
description = 'WMF to SVG Converting Tool & Library'
url = 'http://hidekatsu-izuno.github.io/wmf2svg/'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'hidekatsu.izuno'
name = 'Hidekatsu Izuno'
email = '[email protected]'
}
}
scm {
url = 'https://github.com/hidekatsu-izuno/wmf2svg'
connection = 'scm:git:git://github.com/hidekatsu-izuno/wmf2svg.git'
developerConnection = 'scm:git:ssh:[email protected]:hidekatsu-izuno/wmf2svg.git'
}
}
}
}
repositories {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username = sonatypeUsername
password = sonatypePassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}