Skip to content

Commit 3ecc004

Browse files
committed
Added publishing block
1 parent 252163b commit 3ecc004

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Diff for: eco-core/core-plugin/build.gradle.kts

+16-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,23 @@ dependencies {
99

1010
publishing {
1111
publications {
12-
register("maven", MavenPublication::class) {
13-
from(components["java"])
12+
register<MavenPublication>("maven") {
13+
groupId = project.group.toString()
14+
version = project.version.toString()
1415
artifactId = rootProject.name
16+
17+
artifact(rootProject.tasks.shadowJar.get().archiveFile)
18+
}
19+
}
20+
21+
repositories {
22+
maven {
23+
name = "auxilor"
24+
url = uri("https://repo.auxilor.io/repository/maven-releases/")
25+
credentials {
26+
username = System.getenv("MAVEN_USERNAME")
27+
password = System.getenv("MAVEN_PASSWORD")
28+
}
1529
}
1630
}
1731
}

0 commit comments

Comments
 (0)