Skip to content

Commit

Permalink
just remove spotless not the publishing too
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiyou06 committed Jul 7, 2024
1 parent 0dbf375 commit ce6219c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions build-logic/src/main/kotlin/mod.base-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,36 @@ tasks {
build {
dependsOn(reobfJar)
}


var jarFile = file("build/libs/%s-%s.jar".format(project.name, project.version))
var jarArtifact = artifacts.add("default", jarFile) {
type = "jar"
builtBy("jar")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(jarArtifact)
group = "plugins"
}
}

repositories {
maven {
name = "gensorepo"
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
// url to the releases maven repository
url = uri("https://repo.gensokyoreimagined.net/")
}
}
}

tasks.named("publishMavenJavaPublicationToGensorepoRepository") {
dependsOn("reobfJar")
}
}

0 comments on commit ce6219c

Please sign in to comment.