17
17
18
18
// Main jar with only selected classes
19
19
task selectedClassesJar (type : Jar ) {
20
+ archiveBaseName = ' mapping-plugin-core'
20
21
archiveClassifier = ' '
21
22
from sourceSets. main. output
22
23
include ' **/configuration/ApplicationProperties.class' ,
@@ -27,16 +28,28 @@ task selectedClassesJar(type: Jar) {
27
28
' **/plugins/MappingPluginState.class' ,
28
29
' **/util/PythonRunnerUtil.class' ,
29
30
' **/util/ShellRunnerUtil.class'
31
+ includeEmptyDirs false
30
32
}
31
33
32
- // Sources jar
33
- task sourcesJar (type : Jar ) {
34
+ // Sources jar with only selected classes
35
+ task selectedSourcesJar (type : Jar ) {
36
+ archiveBaseName = ' mapping-plugin-core'
34
37
archiveClassifier = ' sources'
35
38
from sourceSets. main. allSource
39
+ include ' **/configuration/ApplicationProperties.java' ,
40
+ ' **/exception.BadExitCodeException.java' ,
41
+ ' **/plugins/AbstractPythonMappingPlugin.java' ,
42
+ ' **/plugins/IMappingPlugin.java' ,
43
+ ' **/plugins/MappingPluginException.java' ,
44
+ ' **/plugins/MappingPluginState.java' ,
45
+ ' **/util/PythonRunnerUtil.java' ,
46
+ ' **/util/ShellRunnerUtil.java'
47
+ includeEmptyDirs false
36
48
}
37
49
38
50
// Javadoc jar
39
51
task javadocJar (type : Jar ) {
52
+ archiveBaseName = ' mapping-plugin-core'
40
53
archiveClassifier = ' javadoc'
41
54
from javadoc
42
55
}
@@ -45,12 +58,12 @@ task javadocJar(type: Jar) {
45
58
// for java plugin
46
59
// see https://docs.gradle.org/current/userguide/java_plugin.html
47
60
// //////////////////////////////////////////////////////////////////////////////
48
- java {
61
+ // java {
49
62
// package JavaDoc as part of publication
50
- withJavadocJar()
63
+ // withJavadocJar()
51
64
// package Sources as part of publication
52
- withSourcesJar()
53
- }
65
+ // withSourcesJar()
66
+ // }
54
67
55
68
// //////////////////////////////////////////////////////////////////////////////
56
69
// for plugin net.researchgate.release
@@ -98,7 +111,7 @@ publishing {
98
111
// by the signing plugin, e.g. sign publishing.publications.maven
99
112
mavenJava(MavenPublication ) {
100
113
artifact selectedClassesJar
101
- artifact sourcesJar
114
+ artifact selectedSourcesJar
102
115
artifact javadocJar
103
116
104
117
groupId = " edu.kit.datamanager"
0 commit comments