File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
modules/swagger-codegen/src/main/resources/Java Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ repositories {
18
18
jcenter()
19
19
}
20
20
21
-
22
21
if(hasProperty('target') && target == 'android') {
23
22
24
23
apply plugin: ' com.android.library'
@@ -103,6 +102,21 @@ if(hasProperty('target') && target == 'android') {
103
102
main = System.getProperty(' mainClass' )
104
103
classpath = sourceSets.main.runtimeClasspath
105
104
}
105
+
106
+ task sourcesJar(type: Jar, dependsOn: classes) {
107
+ classifier = ' sources'
108
+ from sourceSets.main.allSource
109
+ }
110
+
111
+ task javadocJar(type: Jar, dependsOn: javadoc) {
112
+ classifier = ' javadoc'
113
+ from javadoc.destinationDir
114
+ }
115
+
116
+ artifacts {
117
+ archives sourcesJar
118
+ archives javadocJar
119
+ }
106
120
}
107
121
108
122
ext {
@@ -135,3 +149,4 @@ dependencies {
135
149
{ {/java8} }
136
150
testCompile "junit:junit:$junit_version"
137
151
}
152
+
You can’t perform that action at this time.
0 commit comments