Skip to content

Commit

Permalink
Expose transitive dependencies as API
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas authored and sfPlayer1 committed Oct 10, 2023
1 parent 59b5efa commit 285951e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'java'
id 'java-library'
id 'application'
id 'maven-publish'
id "checkstyle"
Expand Down Expand Up @@ -35,6 +35,8 @@ java {
languageVersion = JavaLanguageVersion.of(17)
}
}

withSourcesJar()
}

tasks.withType(JavaCompile).configureEach {
Expand All @@ -53,15 +55,15 @@ javafx {
}

dependencies {
api "org.ow2.asm:asm:${asm_version}"
api "org.ow2.asm:asm-tree:${asm_version}"
api "net.fabricmc:mapping-io:${mappingio_version}"
implementation "org.ow2.asm:asm-commons:${asm_version}"
implementation "org.ow2.asm:asm-util:${asm_version}"
implementation "com.github.javaparser:javaparser-core:${javaparser_version}"
implementation "net.fabricmc:cfr:${fabric_cfr_version}"
implementation "net.fabricmc:fabric-fernflower:${fabric_fernflower_version}"
implementation "net.fabricmc:mapping-io:${mappingio_version}"
implementation "org.bitbucket.mstrobel:procyon-compilertools:${procyon_version}"
implementation "org.ow2.asm:asm:${asm_version}"
implementation "org.ow2.asm:asm-commons:${asm_version}"
implementation "org.ow2.asm:asm-tree:${asm_version}"
implementation "org.ow2.asm:asm-util:${asm_version}"

// JavaFX for all platforms (needed for cross-platform fat jar)
runtimeOnly "org.openjfx:javafx-base:${javafx_version}:win"
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
requires transitive javafx.graphics;
requires transitive javafx.web;
requires transitive org.objectweb.asm;
requires org.objectweb.asm.commons;
requires transitive org.objectweb.asm.tree;
requires org.objectweb.asm.commons;
requires org.objectweb.asm.tree.analysis;
requires org.objectweb.asm.util;
requires procyon.compilertools;
requires transitive net.fabricmc.mappingio;

uses matcher.Plugin;
}
}

0 comments on commit 285951e

Please sign in to comment.