Skip to content

Commit 7403974

Browse files
committed
publication
1 parent c33215f commit 7403974

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

build.gradle

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,25 @@ jar {
6868
}
6969
}
7070

71+
7172
// configure the maven publication
7273
publishing {
7374
publications {
74-
mavenJava(MavenPublication) {
75-
// add all the jars that should be included when publishing to maven
76-
artifact(remapJar) {
77-
builtBy remapJar
78-
}
79-
artifact(sourcesJar) {
80-
builtBy remapSourcesJar
81-
}
75+
create("mavenJava", MavenPublication) {
76+
artifactId = project.archives_base_name
77+
from components.java
8278
}
8379
}
8480

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

0 commit comments

Comments
 (0)