Skip to content

Commit

Permalink
publish fatjar
Browse files Browse the repository at this point in the history
  • Loading branch information
pvranik committed Oct 29, 2023
1 parent 6737e3e commit bfcdd8d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@ compileJava {
options.compilerArgs += ["-Aproject=${project.group}/${project.name}"]
}

tasks.register('javadocJar', Jar) {
archiveClassifier = 'javadoc'
from javadoc
}

tasks.register('sourcesJar', Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
java {
withSourcesJar()
withJavadocJar()
}

tasks.register('fatJar', Jar) {
Expand All @@ -63,7 +58,7 @@ tasks.register('fatJar', Jar) {


artifacts {
archives javadocJar, sourcesJar, fatJar
archives fatJar
}

publishing {
Expand Down Expand Up @@ -92,6 +87,7 @@ publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
artifact fatJar
pom {
name = 'netatmo4j'
// optionally artifactId can be defined here
Expand Down

0 comments on commit bfcdd8d

Please sign in to comment.