Skip to content

Commit

Permalink
rdf-graphs: build.gradle - add publishing and info
Browse files Browse the repository at this point in the history
  • Loading branch information
sszuev committed Mar 7, 2023
1 parent eb2e377 commit 2f4deab
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
kotlin("jvm")
id("maven-publish")
signing
}

group = "com.github.sszuev"
Expand All @@ -22,6 +24,66 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}


publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()

from(components["java"])

pom {
name.set("${project.group}:${project.name}")
description.set("Thread-safe RDF Graphs")
url.set("https://github.com/sszuev/concurrent-rdf-graph")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
license {
name.set("GNU LGPL Version 3.0")
url.set("http://www.gnu.org/licenses/lgpl.txt")
}
}
scm {
connection.set("scm:git:git://github.com/sszuev/concurrent-rdf-graph.git")
developerConnection.set("scm:git:ssh://github.com/sszuev/concurrent-rdf-graph.git")
url.set("https://github.com/sszuev/concurrent-rdf-graph")
}
developers {
developer {
id.set("sszuev")
name.set("Sergei Zuev")
email.set("[email protected]")
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/sszuev/${project.name}")
credentials {
username = project.findProperty("gpr.user") as String?
password = project.findProperty("gpr.key") as String?
}
}
}
}
}

java {
withSourcesJar()
withJavadocJar()
}

signing {
sign(publishing.publications["maven"])
}

tasks.test {
useJUnitPlatform()
}
Expand Down

0 comments on commit 2f4deab

Please sign in to comment.