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

Commit

Permalink
Set up publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Jan 5, 2023
1 parent 230aee4 commit 9740cad
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ plugins {
kotlin("jvm") version "1.7.21"
kotlin("plugin.serialization") version "1.7.21"
application
`maven-publish`
}

group = "dev.proxyfox"
version = "1.0-SNAPSHOT"
version = "1.0"
val ktor_version = "2.1.0"

repositories {
Expand All @@ -24,4 +25,20 @@ dependencies {

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
}

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 9740cad

Please sign in to comment.