/
build.gradle
169 lines (149 loc) · 5.45 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
buildscript {
ext {
jacksonVersion = "2.11.2"
kotlinVersion = "1.4.21"
}
repositories {
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
}
}
apply plugin: "maven"
apply plugin: "signing"
apply plugin: "kotlin"
apply plugin: "org.jetbrains.dokka"
apply plugin: "io.codearte.nexus-staging"
group = "io.github.subiyacryolite"
version = "20.5-SNAPSHOT"
archivesBaseName = project.name
description = "A dynamic, cross platform and high performance data-mapper. JDS is designed to assist in rapid development and the creation of robust, strongly typed, field dictionaries"
[compileJava, compileTestJava]*.options*.encoding = "UTF-8"
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ["-Xjsr305=strict"]
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ["-Xjsr305=strict"]
}
}
repositories {
mavenCentral()
jcenter()
maven { url "https://maven.atlassian.com/3rdparty/" }
maven { url "http://clojars.org/repo/" }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testImplementation "org.slf4j:slf4j-jdk14:1.8.0-beta4"
testImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion"
testImplementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jacksonVersion"
testImplementation "org.xerial:sqlite-jdbc:3.27.2.1"
testImplementation "com.microsoft.sqlserver:mssql-jdbc:7.0.0.jre8"
testImplementation "org.postgresql:postgresql:42.2.5"
testImplementation "mysql:mysql-connector-java:8.0.13"
testImplementation "org.mariadb.jdbc:mariadb-java-client:2.4.0"
testImplementation "com.oracle:ojdbc6:12.1.0.1-atlassian-hosted"
testImplementation "com.zaxxer:HikariCP:3.3.1"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.4.2"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.4.2"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.4.2"
}
jar {
from configurations.runtime
manifest {
attributes(
"Implementation-Title": "Jenesis Data Store",
"Implementation-Version": project.version,
"Created-By": "${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})",
)
}
}
test {
useJUnitPlatform {
includeTags 'standalone', 'SqLite'
}
}
dokka {
outputFormat = 'html' // use 'javadoc' to get standard java docs
outputDirectory = "$buildDir/javadoc"
configuration {
includeNonPublic = false
skipEmptyPackages = true
skipDeprecated = true
reportUndocumented = true
jdkVersion = 8
}
}
task javadocJar(type: Jar) {
classifier = "javadoc"
from dokka
}
task sourceJar(type: Jar) {
classifier = "sources"
from sourceSets.main.allJava
}
artifacts {
archives javadocJar, sourceJar
}
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
if (project.hasProperty("ossrhUsername")) {
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name "Jenesis Data Store"
packaging "jar"
description = project.description
url "https://github.com/SubiyaCryolite/jds"
scm {
connection "scm:git:git@github.com:SubiyaCryolite/jds.git"
developerConnection "scm:git:git@github.com:SubiyaCryolite/jds.git"
url "https://github.com/SubiyaCryolite/jds"
}
licenses {
license {
name "The 3-Clause BSD License"
url "https://opensource.org/licenses/BSD-3-Clause"
}
}
developers {
developer {
id "SubiyaCryolite"
name "Ifunga Ndana"
email "ifungandana@gmail.com"
}
}
}
}
}
}
}
nexusStaging {
packageGroup = "io.github.subiyacryolite"
stagingProfileId = "57cb63f09e7fd5"
}