Skip to content

Commit 18a6c58

Browse files
committed
Add gradle config for creating javadoc and sources jar files for maven.
1 parent 73013c0 commit 18a6c58

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'org.openjfx.javafxplugin' version '0.0.10'
3+
id 'maven-publish'
34
}
45
jar.enabled = false
56

@@ -45,3 +46,35 @@ repositories {
4546
url 'https://repo.lemaik.de/'
4647
}
4748
}
49+
50+
task javadocJar(type: Jar) {
51+
classifier = 'javadoc'
52+
from javadoc
53+
}
54+
55+
task sourcesJar(type: Jar) {
56+
classifier = 'sources'
57+
from sourceSets.main.allSource
58+
}
59+
60+
publishing {
61+
publications {
62+
mavenJava(MavenPublication) {
63+
groupId = 'de.lemaik'
64+
artifactId = 'chunky-denoiser'
65+
version = '0.5.0'
66+
from components.java
67+
68+
pom {
69+
name = 'chunky-denoiser'
70+
71+
licenses {
72+
license {
73+
name = 'GNU General Public License v3.0 (GPL-3.0)'
74+
url = 'https://github.com/chunky-dev/chunky-denoiser/blob/master/LICENSE'
75+
}
76+
}
77+
}
78+
}
79+
}
80+
}

0 commit comments

Comments
 (0)