Skip to content

Commit

Permalink
fix: configure maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
DerYeger committed May 5, 2021
1 parent 92ab7a8 commit 2492117
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 18 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,29 @@ plugins {

val junitVersion: String by project

group = "eu.yeger"
version = "4.0.0"
val groupName = "eu.yeger"
val libraryName = "refunk"
val libraryVersion = "4.0.1"

group = groupName
version = libraryVersion

kotlin {
explicitApi()
}

publishing {
publications {
create<MavenPublication>("maven") {
groupId = groupName
artifactId = libraryName
version = libraryVersion

from(components["java"])
}
}
}

repositories {
mavenCentral()
}
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pluginManagement {
val ktlintVersion: String by settings

plugins {
`maven-publish`
jacoco
kotlin("jvm") version kotlinVersion
id("org.jlleitschuh.gradle.ktlint") version ktlintVersion
}
Expand Down

0 comments on commit 2492117

Please sign in to comment.