-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
130 lines (118 loc) · 4.74 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
buildscript {
ext {
jacksonVersion = "2.18.2"
kotlinVersion = "2.1.0"
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.9.20"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
}
}
apply plugin: "signing"
apply plugin: "kotlin"
apply plugin: "org.jetbrains.dokka"
apply plugin: "io.codearte.nexus-staging"
group = "io.github.subiyacryolite"
version = "21.0.0-SNAPSHOT" //naming convention should match the target minimum Java version. Simply bump the major and minor revisions
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")
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll '-Xjsr305=strict'
}
}
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:2.0.13"
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.41.2.2'
testImplementation 'com.microsoft.sqlserver:mssql-jdbc:10.2.1.jre8'
testImplementation 'org.postgresql:postgresql:42.7.2'
testImplementation 'com.mysql:mysql-connector-j:9.0.0'
testImplementation 'org.mariadb.jdbc:mariadb-java-client:3.0.5'
testImplementation "com.oracle.database.jdbc:ojdbc11-production:23.4.0.24.05"
testImplementation "com.zaxxer:HikariCP:5.0.1"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.9.0"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.0"
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.9.0"
}
jar {
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'
}
}
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
if (project.hasProperty("ossrhUsername")) {
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { 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:[email protected]:SubiyaCryolite/jds.git"
developerConnection "scm:git:[email protected]: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 "[email protected]"
}
}
}
}
}
}
}
nexusStaging {
packageGroup = "io.github.subiyacryolite"
stagingProfileId = "57cb63f09e7fd5"
}