Skip to content

Commit

Permalink
improve fabric maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolMineman committed May 23, 2022
1 parent 9221204 commit bb0031a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brachyura/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>io.github.coolcrabs</groupId>
<artifactId>brachyura</artifactId>
<version>0.86</version>
<version>0.87</version>

<properties>
<java.version>1.8</java.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ public Path getModuleRoot() {
public void getTasks(Consumer<Task> p) {
super.getTasks(p);
p.accept(Task.of("build", this::build));
getPublishTasks(p);
}

public void getPublishTasks(Consumer<Task> p) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public static void publish(AuthenticatedMaven maven, JavaJarDependency dep) {
* @param pom
*/
public static void publish(AuthenticatedMaven maven, JavaJarDependency dep, Supplier<InputStream> pom) {
Objects.requireNonNull(pom);
Objects.requireNonNull(pom, "null pom");
Objects.requireNonNull(dep.mavenId, "null mavenId");
Objects.requireNonNull(dep.jar, "null jar file");
ArrayList<MavenPublishFile> a = new ArrayList<>(3);
a.add(new MavenPublishFile(getMavenPath(dep.mavenId, ".pom"), pom));
a.add(new MavenPublishFile(getMavenPath(dep.mavenId, ".jar"), () -> PathUtil.inputStream(dep.jar)));
Expand Down

0 comments on commit bb0031a

Please sign in to comment.