Skip to content

Commit

Permalink
include sources jar with maven artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEndii committed Jun 11, 2024
1 parent e32403f commit 076c7b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ plugins {
id 'java'
}

java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
}

wrapper {
gradleVersion = '8.4'
Expand Down Expand Up @@ -544,7 +549,7 @@ publishing {
publication.groupId = project.group
publication.version = isSnapshotVersion ? "${minecraft_version}-${version}-${project.teamcityBuild}" : "${minecraft_version}-${version}"
publication.artifactId = isSnapshotVersion ? "advancedperipherals-snapshots" : "advancedperipherals"
publication.artifacts = [jar]
publication.artifacts = [jar, sourcesJar]
publication.pom {
name.set("AdvancedPeripherals")
packaging = 'jar'
Expand Down

0 comments on commit 076c7b6

Please sign in to comment.