Make (locally) publishable

This commit is contained in:
Oliver Rümpelein 2020-05-08 15:07:30 +02:00
parent 034c00ca5b
commit a99728852e
2 changed files with 22 additions and 3 deletions

View file

@ -1,15 +1,21 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// TODO: Documentation
// TODO: Source Jar
// TODO: Doc Jar
// TODO: Proper Maven publish
plugins {
kotlin("jvm")
`maven-publish`
}
repositories {
mavenCentral()
}
group = "de.pheerai"
version = "0.0.1"
project.version = "0.0.1"
project.group = "de.pheerai.rcdb"
java {
targetCompatibility = JavaVersion.VERSION_11
@ -37,3 +43,16 @@ tasks {
useJUnitPlatform()
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group as String
artifactId = project.name as String
version = project.version as String
from(components["java"])
}
}
}

View file

@ -4,4 +4,4 @@ pluginManagement {
}
}
rootProject.name = "rcdbquery"
rootProject.name = "querybuilder"