Skip to content

Commit

Permalink
Fix dependencies in subproject -fabric & -forge maven publications
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Sep 24, 2024
1 parent ab5e4c2 commit adf5fd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ publishing {
builtBy remapSourcesJarTask
classifier "sources"
}

// Hack to inherit the dependencies without inheriting the artifacts
publication.setArtifacts(publication.artifacts)
from components.java
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ publishing {
builtBy remapSrgSourcesJar
classifier "sources"
}

// Hack to inherit the dependencies without inheriting the artifacts
publication.setArtifacts(publication.artifacts)
from components.java
}
}
}
Expand Down

0 comments on commit adf5fd1

Please sign in to comment.