Skip to content

Commit

Permalink
Merge pull request #84 from m00nl1ght-dev/stable-3.x
Browse files Browse the repository at this point in the history
Allow java modules to have NightConfig as a dependency (Automatic-Module-Name manifest attribute)
  • Loading branch information
TheElectronWill authored Sep 25, 2020
2 parents 4ac1b3c + 2d2842f commit fa4f766
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ configure(subprojects.findAll {it.name != "examples"}) {
useJUnitPlatform()
}

jar {
manifest {
attributes "Automatic-Module-Name": "com.electronwill.nightconfig.$project.name"
}
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
Expand Down

0 comments on commit fa4f766

Please sign in to comment.