-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (98 loc) · 2.87 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.60'
id 'maven-publish'
id 'java-library'
id 'signing'
id 'org.jetbrains.dokka' version '0.10.1'
}
group = 'ca.voidstarzero'
version = '1.1.1'
java.sourceCompatibility = JavaVersion.VERSION_1_8
java {
withSourcesJar()
}
dokka {
outputFormat = 'html-as-java'
outputDirectory = "$buildDir/dokka"
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
dependsOn dokka
from("$buildDir/dokka/isbd-parser")
from("$buildDir/dokka/style.css")
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'isbd-parser'
from components.java
artifact javadocJar
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'ISBD Parser'
description = 'A context-sensitive ISBD parsing library.'
url = 'https://github.com/hzafar/isbd-parser'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'hzafar'
name = 'Huma Zafar'
email = '[email protected]'
organizationUrl = 'voidstarzero.ca'
}
}
scm {
connection = 'scm:git:git://github.com/hzafar/isbd-parser.git'
developerConnection = 'scm:git:ssh://github.com:hzafar/isbd-parser.git'
url = 'http://github.com/hzafar/isbd-parser/tree/main/'
}
}
}
}
repositories {
maven {
credentials {
username project.NEXUSUSERNAME
password project.NEXUSPASSWORD
}
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}
}
}
allprojects {
ext."signing.gnupg.keyName" = project.SIGNINGKEYID
ext."signing.gnupg.passphrase" = project.SIGNINGPASSWORD
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.12.1'
api 'com.github.norswap:autumn:80abd5c207'
testImplementation 'junit:junit:4.12'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}