Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Set up maven publication
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Feb 11, 2023
1 parent 2c8ce16 commit 29843b6
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
kotlin("jvm") version "1.8.0"
`maven-publish`
}

group = "dev.proxyfox"
version = "1.0-SNAPSHOT"
version = "1.0"

repositories {
mavenCentral()
Expand All @@ -21,3 +22,19 @@ kotlin {
jvmToolchain(17)
explicitApi()
}

publishing {
publications {
register<MavenPublication>("mavenJava") {
from(components["java"])
}
}

repositories {
maven {
url = uri("https://maven.proxyfox.dev")
credentials.username = System.getenv("PF_MAVEN_USER")
credentials.password = System.getenv("PF_MAVEN_PASS")
}
}
}

0 comments on commit 29843b6

Please sign in to comment.