Skip to content

Commit

Permalink
Add gradle config for creating javadoc and sources jar files for maven.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Sep 25, 2023
1 parent 73013c0 commit 18a6c58
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'maven-publish'
}
jar.enabled = false

Expand Down Expand Up @@ -45,3 +46,35 @@ repositories {
url 'https://repo.lemaik.de/'
}
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'de.lemaik'
artifactId = 'chunky-denoiser'
version = '0.5.0'
from components.java

pom {
name = 'chunky-denoiser'

licenses {
license {
name = 'GNU General Public License v3.0 (GPL-3.0)'
url = 'https://github.com/chunky-dev/chunky-denoiser/blob/master/LICENSE'
}
}
}
}
}
}

0 comments on commit 18a6c58

Please sign in to comment.