Skip to content

Commit

Permalink
fixed building jars in JitPack
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Jan 2, 2024
1 parent 41b3be7 commit 38aec2c
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/).

## [1.20.2-3.0.0.2] - 2024-01-02
### Changed
- fixed building jars in JitPack

## [1.20.2-3.0.0.1] - 2024-01-02
### Changed
- fixed building api jar
Expand Down
20 changes: 16 additions & 4 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,22 @@ jar.finalizedBy('reobfJar')

publishing {
publications {
mavenJava(MavenPublication) {
artifactId base.archivesName.get()
from components.java
fg.component(it)
register('mavenJava', MavenPublication) {
artifact jar
artifact apiJar
artifact javadocJar
artifact sourcesJar

groupId = project.group
artifactId project.archivesBaseName
version project.version

// Filter any dependencies from appearing in the pom.xml
pom.withXml {
asNode().dependencies.dependency.each { dep ->
assert dep.parent().remove(dep)
}
}
}
}
repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Every field you add must be added to the root build.gradle expandProps map.

# Project
version=3.0.0.1
version=3.0.0.2
group=de.cech12.bucketlib
mod_id=bucketlib
mod_name=BucketLib
Expand Down
19 changes: 16 additions & 3 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,22 @@ artifacts {

publishing {
publications {
mavenJava(MavenPublication) {
artifactId base.archivesName.get()
from components.java
register('mavenJava', MavenPublication) {
artifact jar
artifact apiJar
artifact javadocJar
artifact sourcesJar

groupId = project.group
artifactId project.archivesBaseName
version project.version

// Filter any dependencies from appearing in the pom.xml
pom.withXml {
asNode().dependencies.dependency.each { dep ->
assert dep.parent().remove(dep)
}
}
}
}
repositories {
Expand Down

0 comments on commit 38aec2c

Please sign in to comment.