-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
69 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GPG_PRIVATE_KEY="" | ||
GPG_PRIVATE_PASSWORD="" | ||
SONATYPE_PASSWORD="" | ||
SONATYPE_USERNAME="" | ||
GPG_KEY_SERVER="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.gradle | ||
build/ | ||
.idea | ||
build | ||
.env | ||
logs | ||
*.plantuml | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import org.jetbrains.dokka.DokkaConfiguration.Visibility | ||
import java.lang.Thread.sleep | ||
import java.net.URI | ||
|
||
val GPG_PRIVATE_KEY = System.getenv("GPG_PRIVATE_KEY") | ||
val GPG_PRIVATE_PASSWORD = System.getenv("GPG_PRIVATE_PASSWORD") | ||
val SONATYPE_USERNAME = System.getenv("SONATYPE_USERNAME") | ||
val SONATYPE_PASSWORD = System.getenv("SONATYPE_PASSWORD") | ||
|
||
plugins { | ||
signing | ||
`java-library` | ||
`maven-publish` | ||
`jvm-test-suite` | ||
|
@@ -10,16 +17,20 @@ plugins { | |
id("org.jetbrains.dokka") version "1.9.10" | ||
id("com.adarshr.test-logger") version "4.0.0" | ||
id("org.jetbrains.kotlinx.kover") version "0.7.6" | ||
id("io.github.gradle-nexus.publish-plugin") version "1.3.0" | ||
} | ||
|
||
group = "com.urosjarc" | ||
version = "0.0.2-SNAPSHOT" | ||
version = "0.0.1" | ||
val github = "https://github.com/urosjarc/db-messiah-extra" | ||
|
||
kotlin { | ||
explicitApi() | ||
jvmToolchain(19) | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
repositories { | ||
mavenCentral() | ||
maven { url = URI("https://jitpack.io") } | ||
|
@@ -40,12 +51,25 @@ tasks.register<GradleBuild>("github") { | |
this.group = "verification" | ||
this.doFirst { | ||
println("Waiting for services to warm up...") | ||
Thread.sleep(60 * 1000) | ||
sleep(60 * 1000) | ||
println("Start with testing...") | ||
} | ||
this.tasks = listOf("test") | ||
} | ||
|
||
signing { | ||
useInMemoryPgpKeys(GPG_PRIVATE_KEY, GPG_PRIVATE_PASSWORD) | ||
sign(publishing.publications) | ||
} | ||
|
||
val dokkaHtml by tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class) | ||
|
||
val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) { | ||
dependsOn(dokkaHtml) | ||
archiveClassifier.set("javadoc") | ||
from(dokkaHtml.outputDirectory) | ||
} | ||
|
||
tasks.dokkaHtml { | ||
dokkaSourceSets { | ||
configureEach { | ||
|
@@ -67,11 +91,13 @@ tasks.dokkaHtml { | |
} | ||
|
||
dependencies { | ||
val dbMessiah = "0.0.1" | ||
|
||
implementation(kotlin("reflect")) | ||
implementation(project(":db-messiah")) | ||
implementation("org.apache.logging.log4j:log4j-api-kotlin:1.4.0") | ||
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0") | ||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") | ||
compileOnly("com.urosjarc:db-messiah:$dbMessiah") | ||
|
||
testRuntimeOnly("com.ibm.db2:jcc:11.5.9.0") | ||
testRuntimeOnly("com.h2database:h2:2.2.224") | ||
|
@@ -85,6 +111,7 @@ dependencies { | |
|
||
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.20.0") | ||
testImplementation("org.jetbrains.kotlin:kotlin-test") | ||
testImplementation("com.urosjarc:db-messiah:$dbMessiah") | ||
} | ||
|
||
tasks.test { | ||
|
@@ -98,11 +125,15 @@ publishing { | |
artifactId = rootProject.name | ||
version = rootProject.version as String | ||
from(components["java"]) | ||
|
||
artifact(javadocJar) | ||
pom { | ||
name = "Db Messiah Extra Utils" | ||
description = "Extra Utils for Db Messiah, kotlin lib. for enterprise database development" | ||
url = "https://github.com/urosjarc/db-messiah-extra" | ||
url = github | ||
issueManagement { | ||
system = "Github" | ||
url = "$github/issues" | ||
} | ||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
|
@@ -116,7 +147,23 @@ publishing { | |
email = "[email protected]" | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:$github") | ||
developerConnection.set("scm:git:$github") | ||
url.set(github) | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name = "snapshot" | ||
setUrl { "https://oss.sonatype.org/content/repositories/snapshots/" } | ||
credentials { | ||
username = SONATYPE_USERNAME | ||
password = SONATYPE_PASSWORD | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/main/kotlin/com/urosjarc/dbmessiah/extra/serializers/KotlinxInstantTS.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/main/kotlin/com/urosjarc/dbmessiah/extra/serializers/KotlinxLocalTimeTS.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters