Skip to content

Commit

Permalink
publication
Browse files Browse the repository at this point in the history
  • Loading branch information
DaFuqs committed Nov 11, 2024
1 parent c33215f commit 7403974
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,25 @@ jar {
}
}


// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
mavenLocal()
maven {
name "sapphoCompany"
url = "https://maven.is-immensely.gay/releases"
credentials {
username = "dafuqs"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}

0 comments on commit 7403974

Please sign in to comment.