Skip to content

Commit

Permalink
Added publishing block
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Aug 10, 2023
1 parent 252163b commit 3ecc004
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions eco-core/core-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,23 @@ dependencies {

publishing {
publications {
register("maven", MavenPublication::class) {
from(components["java"])
register<MavenPublication>("maven") {
groupId = project.group.toString()
version = project.version.toString()
artifactId = rootProject.name

artifact(rootProject.tasks.shadowJar.get().archiveFile)
}
}

repositories {
maven {
name = "auxilor"
url = uri("https://repo.auxilor.io/repository/maven-releases/")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
Expand Down

0 comments on commit 3ecc004

Please sign in to comment.