Skip to content

Commit

Permalink
Prepare maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
nodh committed Jun 11, 2021
1 parent 33b0ef2 commit 78a91ff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
kotlin("plugin.serialization") version "1.5.10"
id("idea")
id("com.github.jk1.dependency-license-report") version "1.16"
id("maven-publish")
}

group = "ehn.techiop.hcert"
Expand Down Expand Up @@ -158,6 +159,21 @@ kotlin {
}


publishing {
repositories {
mavenLocal()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ehn-digital-green-development/hcert-kotlin")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
}


/*
* KJS: No way to get test resources in a multiplatform project.
* https://youtrack.jetbrains.com/issue/KT-36824
Expand Down

0 comments on commit 78a91ff

Please sign in to comment.