We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b32e867 commit da1786aCopy full SHA for da1786a
build.gradle.kts
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
3
4
plugins {
5
kotlin("jvm") version "2.0.10"
6
+ `maven-publish`
7
}
8
9
group = "dev.silenium.libs.flow-graph"
@@ -46,3 +47,25 @@ tasks.compileTestKotlin {
46
47
kotlin {
48
jvmToolchain(8)
49
50
+
51
+java {
52
+ withSourcesJar()
53
+}
54
55
+publishing {
56
+ publications {
57
+ create<MavenPublication>("mavenJava") {
58
+ from(components["java"])
59
+ }
60
61
+ repositories {
62
+ val url = System.getenv("MAVEN_REPO_URL") ?: return@repositories
63
+ maven(url) {
64
+ name = "reposilite"
65
+ credentials {
66
+ username = System.getenv("MAVEN_REPO_USERNAME") ?: ""
67
+ password = System.getenv("MAVEN_REPO_PASSWORD") ?: ""
68
69
70
71
0 commit comments